Skip to content

Commit e2c5471

Browse files
committed
link: kprobe_test: satisfy staticcheck QF1001 (not A and not B)
Fix the `QF1001: could apply De Morgan's law` warning. Signed-off-by: Timo Beckers <[email protected]>
1 parent 9f64b89 commit e2c5471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

link/kprobe_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func TestKretprobe(t *testing.T) {
103103
}
104104

105105
k, err := Kretprobe("bogus", prog, nil)
106-
if !(errors.Is(err, os.ErrNotExist) || errors.Is(err, unix.EINVAL)) {
106+
if !errors.Is(err, os.ErrNotExist) && !errors.Is(err, unix.EINVAL) {
107107
t.Fatal(err)
108108
}
109109
if k != nil {

0 commit comments

Comments
 (0)