mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
daemon: update: check len inside public function
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
e1089de144
commit
d5160a0211
@ -171,7 +171,7 @@ func TestGetRemoteImageJSON(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
assertEqual(t, size, int64(154), "Expected size 154")
|
||||
if len(json) <= 0 {
|
||||
if len(json) == 0 {
|
||||
t.Fatal("Expected non-empty json")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user