mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
gofmt
This commit is contained in:
parent
1638e66984
commit
4f50eb49ea
@ -60,10 +60,10 @@ func newGVKParser(models proto.Models) (*gvkParser, error) {
|
|||||||
gvkList := parseGroupVersionKind(model)
|
gvkList := parseGroupVersionKind(model)
|
||||||
for _, gvk := range gvkList {
|
for _, gvk := range gvkList {
|
||||||
if len(gvk.Kind) > 0 {
|
if len(gvk.Kind) > 0 {
|
||||||
_, ok := parser.gvks[gvk]
|
_, ok := parser.gvks[gvk]
|
||||||
if ok {
|
if ok {
|
||||||
return nil, fmt.Errorf("duplicate entry for %v", gvk)
|
return nil, fmt.Errorf("duplicate entry for %v", gvk)
|
||||||
}
|
}
|
||||||
parser.gvks[gvk] = modelName
|
parser.gvks[gvk] = modelName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user