We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65ed59 commit b879523Copy full SHA for b879523
errors2_test.go
@@ -22,7 +22,7 @@ func TestErrors(tb *testing.T) {
22
if err1dup == nil {
23
tb.Errorf("error expected")
24
}
25
- if err1dup == err1 {
+ if err1dup == err1 { //nolint:errorlint
26
tb.Errorf("expected to be a separate error")
27
28
@@ -44,7 +44,7 @@ func TestErrors(tb *testing.T) {
44
tb.Errorf("unexpected message: %v", msg)
45
46
47
- if unerr := errors.Unwrap(err1w); unerr != err1 {
+ if unerr := errors.Unwrap(err1w); unerr != err1 { //nolint:errorlint
48
tb.Errorf("err1w unwrap expected to be err1")
49
50
@@ -78,7 +78,7 @@ func TestErrors(tb *testing.T) {
78
79
}()
80
81
- errors.Wrap(nil, "wrap nil")
+ _ = errors.Wrap(nil, "wrap nil")
82
83
84
0 commit comments