Files
runc/.golangci.yml
T
Kir Kolyshkin c8395b6e53 Enable govet nilness, fix an issue
The code already checked if err == nil above, so the linter complains:

> libcontainer/container_linux.go:534:18: nilness: tautological condition: non-nil != nil (govet)
> 			} else if err != nil {
> 			              ^

Fix the issue, enable the check.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-07-10 16:04:38 -07:00

19 lines
259 B
YAML

# For documentation, see https://golangci-lint.run/usage/configuration/
run:
build-tags:
- seccomp
- runc_nodmz
linters:
enable:
- gofumpt
- errorlint
- unconvert
- unparam
linters-settings:
govet:
enable:
- nilness