fix boilerplate and staticcheck

This commit is contained in:
Kevin Delgado 2021-07-27 22:31:38 +00:00
parent 85bc3c4f85
commit 3628065b45
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ func NewGVKParser(models proto.Models, preserveUnknownFields bool) (*GvkParser,
if len(gvk.Kind) > 0 {
_, ok := parser.gvks[gvk]
if ok {
//return nil, fmt.Errorf("duplicate entry for %v", gvk)
return nil, fmt.Errorf("duplicate entry for %v", gvk)
}
parser.gvks[gvk] = modelName
}

View File

@ -1,5 +1,5 @@
/*
Copyright The Kubernetes Authors.
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.