From 18588a89e0d1a2743dd28c45395add796b103b1f Mon Sep 17 00:00:00 2001 From: 0xLogicalx Date: Wed, 26 Nov 2025 19:42:35 +0100 Subject: [PATCH] Update lru_test.go --- cache/nonblocking/lru_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") } }