From b64d9b3b19b8a19149b82d1a1418bc925e81d0ad Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 19 May 2025 18:10:25 +0200 Subject: [PATCH] golangci-lint: replace nilerr for nilnesserr Signed-off-by: Sebastiaan van Stijn --- .golangci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.golangci.yml b/.golangci.yml index 8c105cc555..71a295034f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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.