Skip to content

Commit

Permalink
build(deps): bump github.com/polyfloyd/go-errorlint from 1.5.1 to 1.5…
Browse files Browse the repository at this point in the history
….2 (#4785)

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and ldez committed Jun 1, 2024
1 parent 2042b1f commit 9a7a1ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ require (
github.com/nishanths/predeclared v0.2.2
github.com/nunnatsa/ginkgolinter v0.16.2
github.com/pelletier/go-toml/v2 v2.2.2
github.com/polyfloyd/go-errorlint v1.5.1
github.com/polyfloyd/go-errorlint v1.5.2
github.com/quasilyte/go-ruleguard/dsl v0.3.22
github.com/ryancurrah/gomodguard v1.3.2
github.com/ryanrolds/sqlclosecheck v0.5.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pkg/golinters/errorlint/testdata/errorlint_comparison.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ func errorLintComparison() {
if errCompare != err { // want "comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error"
log.Println("not errCompare")
}
switch err { // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
case errCompare:
switch err {
case errCompare: // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
log.Println("errCompare")
}
switch errorLintDoThing() { // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
case errCompare:
switch errorLintDoThing() {
case errCompare: // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
log.Println("errCompare")
}
}

0 comments on commit 9a7a1ad

Please sign in to comment.