File tree 3 files changed +7
-7
lines changed
pkg/golinters/errorlint/testdata
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ require (
84
84
github.com/nishanths/predeclared v0.2.2
85
85
github.com/nunnatsa/ginkgolinter v0.16.2
86
86
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
88
88
github.com/quasilyte/go-ruleguard/dsl v0.3.22
89
89
github.com/ryancurrah/gomodguard v1.3.2
90
90
github.com/ryanrolds/sqlclosecheck v0.5.1
Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ func errorLintComparison() {
42
42
if errCompare != err { // want "comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error"
43
43
log .Println ("not errCompare" )
44
44
}
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"
47
47
log .Println ("errCompare" )
48
48
}
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"
51
51
log .Println ("errCompare" )
52
52
}
53
53
}
You can’t perform that action at this time.
0 commit comments