diff --git a/cache/nonblocking/lru_test.go b/cache/nonblocking/lru_test.go index b5f56a9fd15a..6e28933fc538 100644 --- a/cache/nonblocking/lru_test.go +++ b/cache/nonblocking/lru_test.go @@ -64,10 +64,10 @@ func TestLRU_Add(t *testing.T) { t.Fatalf("err: %v", err) } - if l.Add(1, 1) == true || evictCounter != 0 { + if l.Add(1, 1) || evictCounter != 0 { t.Errorf("should not have an eviction") } - if l.Add(2, 2) == false || evictCounter != 1 { + if !l.Add(2, 2) || evictCounter != 1 { t.Errorf("should have an eviction") } }