From b38e11b3c4a84e35bfd76bff8133a5338cd69423 Mon Sep 17 00:00:00 2001 From: Anes Hasicic Date: Thu, 26 Mar 2015 11:36:13 +0100 Subject: [PATCH] Removed redundant err == nil check Signed-off-by: Anes Hasicic --- pkg/truncindex/truncindex_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/truncindex/truncindex_test.go b/pkg/truncindex/truncindex_test.go index f46a662d7e..7253f6a4c4 100644 --- a/pkg/truncindex/truncindex_test.go +++ b/pkg/truncindex/truncindex_test.go @@ -60,7 +60,7 @@ func TestTruncIndex(t *testing.T) { assertIndexGet(t, index, id[:1], "", true) // An ambiguous id prefix should return an error - if _, err := index.Get(id[:4]); err == nil || err == nil { + if _, err := index.Get(id[:4]); err == nil { t.Fatal("An ambiguous id prefix should return an error") }