Skip to content

Commit fed313a

Browse files
committed
chore: update tests
1 parent ed4b3a9 commit fed313a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/golinters/errorlint/testdata/errorlint_comparison.go

+4-4
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)