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
- dogsled
- dupl
# - errcheck
- errcheck
# - funlen
# - gochecknoinits
# - goconst
@@ -22,7 +22,7 @@ linters:
- gocyclo
- gofmt
- goimports
# - golint
- golint
- gosec
- gosimple
- govet

View File

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