golangci-lint: replace nilerr for nilnesserr

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-05-19 20:07:15 +02:00
parent 062ad57ce2
commit b64d9b3b19
+1 -1
View File
@@ -44,7 +44,7 @@ linters:
- mirror # Detects wrong mirror patterns of bytes/strings usage.
- misspell # Detects commonly misspelled English words in comments.
- nakedret # Detects uses of naked returns.
- nilerr # Detects code that returns nil even if it checks that the error is not nil.
- nilnesserr # Detects returning nil errors. It combines the features of nilness and nilerr,
- nolintlint # Detects ill-formed or insufficient nolint directives.
- perfsprint # Detects fmt.Sprintf uses that can be replaced with a faster alternative.
- prealloc # Detects slice declarations that could potentially be pre-allocated.