Removed redundant err == nil check

Signed-off-by: Anes Hasicic <anes.hasicic@gmail.com>
This commit is contained in:
Anes Hasicic 2015-03-26 11:36:13 +01:00
parent e1187162b4
commit b94a208b45

View file

@ -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")
}