Browse code

Removed redundant err == nil check

Signed-off-by: Anes Hasicic <anes.hasicic@gmail.com>

Anes Hasicic authored on 2015/03/26 19:36:13
Showing 1 changed files
... ...
@@ -60,7 +60,7 @@ func TestTruncIndex(t *testing.T) {
60 60
 	assertIndexGet(t, index, id[:1], "", true)
61 61
 
62 62
 	// An ambiguous id prefix should return an error
63
-	if _, err := index.Get(id[:4]); err == nil || err == nil {
63
+	if _, err := index.Get(id[:4]); err == nil {
64 64
 		t.Fatal("An ambiguous id prefix should return an error")
65 65
 	}
66 66