diff --git a/.golangci.yaml b/.golangci.yaml index 6ed24afb..11a4e9a0 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -56,7 +56,7 @@ linters: - misspell # - musttag - nakedret -# - nilerr + - nilerr # - nilnil # - nlreturn # - noctx diff --git a/artifact/image/whiteout/whiteout.go b/artifact/image/whiteout/whiteout.go index dd8c4619..4fcdef22 100644 --- a/artifact/image/whiteout/whiteout.go +++ b/artifact/image/whiteout/whiteout.go @@ -39,6 +39,7 @@ func Files(scalibrfs scalibrfs.FS) (map[string]struct{}, error) { err := fs.WalkDir(scalibrfs, ".", func(path string, d fs.DirEntry, err error) error { if err != nil { + //nolint:nilerr // continue walking if there is an error return nil }