Skip to content

Commit b879523

Browse files
committed
linter
1 parent f65ed59 commit b879523

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

errors2_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestErrors(tb *testing.T) {
2222
if err1dup == nil {
2323
tb.Errorf("error expected")
2424
}
25-
if err1dup == err1 {
25+
if err1dup == err1 { //nolint:errorlint
2626
tb.Errorf("expected to be a separate error")
2727
}
2828

@@ -44,7 +44,7 @@ func TestErrors(tb *testing.T) {
4444
tb.Errorf("unexpected message: %v", msg)
4545
}
4646

47-
if unerr := errors.Unwrap(err1w); unerr != err1 {
47+
if unerr := errors.Unwrap(err1w); unerr != err1 { //nolint:errorlint
4848
tb.Errorf("err1w unwrap expected to be err1")
4949
}
5050

@@ -78,7 +78,7 @@ func TestErrors(tb *testing.T) {
7878
}
7979
}()
8080

81-
errors.Wrap(nil, "wrap nil")
81+
_ = errors.Wrap(nil, "wrap nil")
8282
}()
8383
}
8484

0 commit comments

Comments
 (0)