Merge pull request #1804 from hypnoglow/linters

kyaml: enable errcheck & golint; fix gofmt
This commit is contained in:
Kubernetes Prow Robot
2019-11-15 12:40:32 -08:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ linters:
- depguard - depguard
- dogsled - dogsled
- dupl - dupl
# - errcheck - errcheck
# - funlen # - funlen
# - gochecknoinits # - gochecknoinits
# - goconst # - goconst
@@ -22,7 +22,7 @@ linters:
- gocyclo - gocyclo
- gofmt - gofmt
- goimports - goimports
# - golint - golint
- gosec - gosec
- gosimple - gosimple
- govet - govet

View File

@@ -109,9 +109,9 @@ metadata:
return return
} }
instance := &ContainerFilter{ instance := &ContainerFilter{
Image: "example.com:version", Image: "example.com:version",
Network: "test-net", Network: "test-net",
Config: cfg, Config: cfg,
} }
cmd, err := instance.getCommand() cmd, err := instance.getCommand()
if !assert.NoError(t, err) { if !assert.NoError(t, err) {