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