diff --git a/truncindex/truncindex_test.go b/truncindex/truncindex_test.go index f46a662..7253f6a 100644 --- a/truncindex/truncindex_test.go +++ b/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") }