.golangci.yml: add nolintlint, fix found issues

The errrolint linter can finally ignore errors from Close,
and it also ignores direct comparisons of errors from x/sys/unix.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-03-21 14:31:40 -07:00
parent 65e0f2b719
commit a638f1330b
7 changed files with 29 additions and 28 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ func marshal(path string, v interface{}) error {
if err != nil {
return err
}
defer f.Close() //nolint: errcheck
defer f.Close()
return utils.WriteJSON(f, v)
}