From d5160a02110e411447ca154e86875648083cf6ea Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Tue, 15 Mar 2016 17:12:20 +0100 Subject: [PATCH] daemon: update: check len inside public function Signed-off-by: Antonio Murdaca --- docs/registry_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/registry_test.go b/docs/registry_test.go index 7f9cc8e4..7442ebc0 100644 --- a/docs/registry_test.go +++ b/docs/registry_test.go @@ -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") }