Skip to content

Commit 1e420da

Browse files
committed
Fix linter warnings
1 parent 63f2694 commit 1e420da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

xerrors_go120_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestJoinf_Unwrap(t *testing.T) {
5555
if unwrapped == nil {
5656
t.Fatalf("Join(err1, err2).Unwrap() must not return nil")
5757
}
58-
if !(!errors.Is(unwrapped, err1) && errors.Is(unwrapped, err2)) {
58+
if errors.Is(unwrapped, err1) || !errors.Is(unwrapped, err2) {
5959
t.Fatalf("Join(err1, err2).Unwrap() must return the second error")
6060
}
6161
}

xerrors_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func TestJoin_Unwrap(t *testing.T) {
229229
if unwrapped == nil {
230230
t.Fatalf("Join(err1, err2).Unwrap() must not return nil")
231231
}
232-
if !(!errors.Is(unwrapped, err1) && errors.Is(unwrapped, err2)) {
232+
if errors.Is(unwrapped, err1) || !errors.Is(unwrapped, err2) {
233233
t.Fatalf("Join(err1, err2).Unwrap() must return the second error")
234234
}
235235
}

0 commit comments

Comments
 (0)