mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
fix boilerplate and staticcheck
This commit is contained in:
parent
85bc3c4f85
commit
3628065b45
@ -69,7 +69,7 @@ func NewGVKParser(models proto.Models, preserveUnknownFields bool) (*GvkParser,
|
|||||||
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
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright The Kubernetes Authors.
|
Copyright 2021 The Kubernetes Authors.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
Loading…
Reference in New Issue
Block a user