Skip to content

Commit

Permalink
chore(lint): fix unused-parameter error (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
abemedia authored Feb 21, 2024
1 parent 786550c commit 3b35394
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,8 @@ issues:
- path: ((.+)_test.go|internal/test/(.+))
linters: [govet]
text: '^fieldalignment:'
- path: ((.+)_test.go|internal/test/(.+))
linters: [revive]
text: '^unused-parameter:'
- linters: [govet]
text: '^shadow: declaration of "err" shadows declaration'
2 changes: 1 addition & 1 deletion nilcheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ func newNilCheck(zero any) func(v any) bool {
return func(v any) bool { return (*reflect.SliceHeader)(dataOf(v)).Data == 0 }
default:
// Return false for all others.
return func(v any) bool { return false }
return func(any) bool { return false }
}
}

0 comments on commit 3b35394

Please sign in to comment.