Removed redundant err == nil check
Signed-off-by: Anes Hasicic <anes.hasicic@gmail.com> Upstream-commit: b38e11b3c4a84e35bfd76bff8133a5338cd69423 Component: engine
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user