1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

gofmt pass

This commit is contained in:
shin- 2013-04-18 08:34:43 -07:00
parent 1cf8a2c26c
commit 7c1a27e2ad
2 changed files with 7 additions and 7 deletions

View file

@ -2,8 +2,8 @@ package docker
import (
"fmt"
"net/http"
"io/ioutil"
"net/http"
"os"
"path"
"path/filepath"

View file

@ -277,7 +277,7 @@ func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, re
return err
}
} else {
tagsList = map[string]string{ askedTag : "" }
tagsList = map[string]string{askedTag: ""}
}
for askedTag, imgId := range tagsList {
@ -286,13 +286,13 @@ func (graph *Graph) PullRepository(stdout io.Writer, remote, askedTag string, re
if imgId == "" {
imgId, err = graph.getImageForTag(stdout, askedTag, remote, registry, token)
if err != nil {
fmt.Fprintf(stdout, "Error while retrieving image for tag: %v (%v) ; " +
fmt.Fprintf(stdout, "Error while retrieving image for tag: %v (%v) ; "+
"checking next endpoint", askedTag, err)
continue
}
}
if err := graph.PullImage(stdout, imgId, "https://" + registry + "/v1", token); err != nil {
if err := graph.PullImage(stdout, imgId, "https://"+registry+"/v1", token); err != nil {
return err
}