diff --git a/registry/registry.go b/registry/registry.go index ba62b3465f..ab13000b32 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -162,7 +162,6 @@ func (r *Registry) GetRemoteHistory(imgID, registry string, token []string) ([]s // Check if an image exists in the Registry func (r *Registry) LookupRemoteImage(imgID, registry string, token []string) bool { - req, err := r.reqFactory.NewRequest("GET", registry+"images/"+imgID+"/json", nil) if err != nil { return false diff --git a/registry/registry_mock_test.go b/registry/registry_mock_test.go index e752315510..6eb94b63cc 100644 --- a/registry/registry_mock_test.go +++ b/registry/registry_mock_test.go @@ -343,4 +343,4 @@ func TestWait(t *testing.T) { <-c } -//*/ \ No newline at end of file +//*/ diff --git a/utils/utils.go b/utils/utils.go index 497d7f4e42..6a5beb8e48 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -645,6 +645,7 @@ func (jm *JSONMessage) Display(out io.Writer) error { } return jm.Error } + fmt.Fprintf(out, "%c[2K\r", 27) if jm.Time != 0 { fmt.Fprintf(out, "[%s] ", time.Unix(jm.Time, 0)) } @@ -655,7 +656,6 @@ func (jm *JSONMessage) Display(out io.Writer) error { fmt.Fprintf(out, "(from %s) ", jm.From) } if jm.Progress != "" { - fmt.Fprintf(out, "%c[2K", 27) fmt.Fprintf(out, "%s %s\r", jm.Status, jm.Progress) } else { fmt.Fprintf(out, "%s\r\n", jm.Status)