Skip to content

Commit 9a7a1ad

Browse files
build(deps): bump github.com/polyfloyd/go-errorlint from 1.5.1 to 1.5.2 (#4785)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 2042b1f commit 9a7a1ad

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ require (
8484
github.com/nishanths/predeclared v0.2.2
8585
github.com/nunnatsa/ginkgolinter v0.16.2
8686
github.com/pelletier/go-toml/v2 v2.2.2
87-
github.com/polyfloyd/go-errorlint v1.5.1
87+
github.com/polyfloyd/go-errorlint v1.5.2
8888
github.com/quasilyte/go-ruleguard/dsl v0.3.22
8989
github.com/ryancurrah/gomodguard v1.3.2
9090
github.com/ryanrolds/sqlclosecheck v0.5.1

go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/golinters/errorlint/testdata/errorlint_comparison.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ func errorLintComparison() {
4242
if errCompare != err { // want "comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error"
4343
log.Println("not errCompare")
4444
}
45-
switch err { // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
46-
case errCompare:
45+
switch err {
46+
case errCompare: // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
4747
log.Println("errCompare")
4848
}
49-
switch errorLintDoThing() { // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
50-
case errCompare:
49+
switch errorLintDoThing() {
50+
case errCompare: // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
5151
log.Println("errCompare")
5252
}
5353
}

0 commit comments

Comments
 (0)