mirror of
https://github.com/distribution/distribution.git
synced 2025-09-01 06:57:45 +00:00
daemon: update: check len inside public function
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user