mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
.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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user