fix golint failures of pkg/kubectl/cmd/help pkg/kubectl/cmd/proxy pkg/kubectl/cmd/util/openapi

This commit is contained in:
SataQiu
2019-05-05 23:40:09 +08:00
parent 43ce2f17cf
commit d413e3f18d
5 changed files with 7 additions and 4 deletions

View File

@@ -44,6 +44,7 @@ type document struct {
var _ Resources = &document{}
// NewOpenAPIData creates a new `Resources` out of the openapi document
func NewOpenAPIData(doc *openapi_v2.Document) (Resources, error) {
models, err := proto.NewOpenAPIData(doc)
if err != nil {