From 7c1a27e2add585f22a833020dd0551a892b3af69 Mon Sep 17 00:00:00 2001 From: shin- Date: Thu, 18 Apr 2013 08:34:43 -0700 Subject: [PATCH] gofmt pass --- graph.go | 6 +++--- registry.go | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/graph.go b/graph.go index 1b2c441974..ea0c42b3d2 100644 --- a/graph.go +++ b/graph.go @@ -2,8 +2,8 @@ package docker import ( "fmt" - "net/http" "io/ioutil" + "net/http" "os" "path" "path/filepath" @@ -13,8 +13,8 @@ import ( // A Graph is a store for versioned filesystem images and the relationship between them. type Graph struct { - Root string - idIndex *TruncIndex + Root string + idIndex *TruncIndex httpClient *http.Client } diff --git a/registry.go b/registry.go index aacdf8357a..6ae4a425d7 100644 --- a/registry.go +++ b/registry.go @@ -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) ; " + - "checking next endpoint", askedTag, err) + 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 }