mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Enable more linters for new code
This commit is contained in:
@@ -317,7 +317,7 @@ func toTypeMeta(ext interface{}) (yaml.TypeMeta, bool) {
|
||||
}
|
||||
|
||||
apiVersion := m[versionKey].(string)
|
||||
if g := m[groupKey].(string); g != "" {
|
||||
if g, ok := m[groupKey].(string); ok && g != "" {
|
||||
apiVersion = g + "/" + apiVersion
|
||||
}
|
||||
return yaml.TypeMeta{Kind: m[kindKey].(string), APIVersion: apiVersion}, true
|
||||
|
||||
Reference in New Issue
Block a user