Skip to content

Commit 109f063

Browse files
committed
memory_test: apply De Morgan's law
Signed-off-by: Heran Yang <[email protected]>
1 parent e6fcf3f commit 109f063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cgroup1/memory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ func Test_getOomControlValue(t *testing.T) {
337337
t.Errorf("getOomControlValue() = %v, want %v", got, tt.want)
338338
return
339339
}
340-
if !(got == nil || tt.want == nil) && *got != *tt.want {
340+
if got != nil && tt.want != nil && *got != *tt.want {
341341
t.Errorf("getOomControlValue() = %v, want %v", got, tt.want)
342342
}
343343
})

0 commit comments

Comments
 (0)