File tree 1 file changed +4
-4
lines changed
pkg/golinters/errorlint/testdata
1 file changed +4
-4
lines changed 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