Skip to content

Commit 4beb867

Browse files
committed
fix linter
1 parent 31f410a commit 4beb867

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

errors_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ func TestUnwrap(t *testing.T) {
4545
func TestWrapNil(t *testing.T) {
4646
var err error
4747

48-
assert.Panics(t, func() { Wrap(err, "qwe") })
49-
assert.Panics(t, func() { WrapNoCaller(err, "qwe") })
50-
assert.Panics(t, func() { WrapDepth(err, 0, "qwe") })
51-
assert.Panics(t, func() { WrapStack(err, 0, 0, "qwe") })
52-
assert.Panics(t, func() { WrapCaller(err, loc.FuncEntry(0), "qwe") })
53-
assert.Panics(t, func() { WrapCallers(err, loc.Callers(0, 1), "qwe") })
48+
assert.Panics(t, func() { _ = Wrap(err, "qwe") })
49+
assert.Panics(t, func() { _ = WrapNoCaller(err, "qwe") })
50+
assert.Panics(t, func() { _ = WrapDepth(err, 0, "qwe") })
51+
assert.Panics(t, func() { _ = WrapStack(err, 0, 0, "qwe") })
52+
assert.Panics(t, func() { _ = WrapCaller(err, loc.FuncEntry(0), "qwe") })
53+
assert.Panics(t, func() { _ = WrapCallers(err, loc.Callers(0, 1), "qwe") })
5454
}
5555

5656
func (w testWrapper) Error() string { return "none" }

0 commit comments

Comments
 (0)