File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
pkg/golinters/errorlint/testdata Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments