From c5e8cb25caa39ed018ede5270e1566e8f7448396 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 11:57:24 -0500 Subject: simplify things (#7735) --- utils/lru_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/lru_test.go') diff --git a/utils/lru_test.go b/utils/lru_test.go index ab7d0e50a..987163cd3 100644 --- a/utils/lru_test.go +++ b/utils/lru_test.go @@ -85,10 +85,10 @@ func TestLRUAdd(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") } } -- cgit v1.2.3-1-g7c22