Skip to content

Commit

Permalink
Merge pull request #385 from ackama:linting/enable-nilerr
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 715979832
  • Loading branch information
copybara-github committed Jan 15, 2025
2 parents 9a7ebb4 + 157e77f commit 3103516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ linters:
- misspell
# - musttag
- nakedret
# - nilerr
- nilerr
# - nilnil
# - nlreturn
# - noctx
Expand Down
1 change: 1 addition & 0 deletions artifact/image/whiteout/whiteout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3103516

Please sign in to comment.