Browse code

modify to improve code readability

Signed-off-by: WangPing <present.wp@icloud.com>

align

Signed-off-by: WangPing <present.wp@icloud.com>

align

Signed-off-by: WangPing <present.wp@icloud.com>

WangPing authored on 2016/11/07 17:17:04
Showing 1 changed files
... ...
@@ -136,20 +136,16 @@ func (out *lastProgressOutput) WriteProgress(prog progress.Progress) error {
136 136
 func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
137 137
 
138 138
 	var (
139
-		buildCtx io.ReadCloser
140
-		err      error
141
-	)
142
-
143
-	specifiedContext := options.context
144
-
145
-	var (
139
+		buildCtx      io.ReadCloser
140
+		err           error
146 141
 		contextDir    string
147 142
 		tempDir       string
148 143
 		relDockerfile string
149 144
 		progBuff      io.Writer
150 145
 		buildBuff     io.Writer
151 146
 	)
152
-
147
+	
148
+	specifiedContext := options.context
153 149
 	progBuff = dockerCli.Out()
154 150
 	buildBuff = dockerCli.Out()
155 151
 	if options.quiet {