Skip to content

Commit 31786d7

Browse files
mschfhmihaiplesa
authored andcommitted
chore(lint): allow redis.Nil check
1 parent 1972e45 commit 31786d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.golangci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,3 +483,8 @@ linters:
483483
source: 'args\.Get\('
484484
linters:
485485
- errcheck
486+
# Allow == comparison for known sentinel errors from external libraries
487+
- text: 'comparing with == will fail on wrapped errors'
488+
source: 'err == redis\.Nil'
489+
linters:
490+
- errorlint

0 commit comments

Comments
 (0)