mirror of https://github.com/docker/docs.git
Merge pull request #11806 from aneshas/11770-redundant-err-nil-check
Removed redundant err == nil check
This commit is contained in:
commit
afc8ae939a
|
@ -60,7 +60,7 @@ func TestTruncIndex(t *testing.T) {
|
||||||
assertIndexGet(t, index, id[:1], "", true)
|
assertIndexGet(t, index, id[:1], "", true)
|
||||||
|
|
||||||
// An ambiguous id prefix should return an error
|
// 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")
|
t.Fatal("An ambiguous id prefix should return an error")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue