mirror of https://github.com/docker/cli.git
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>
This commit is contained in:
parent
db706f3c38
commit
713c7cd81e
|
@ -138,11 +138,6 @@ func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
|
||||||
var (
|
var (
|
||||||
buildCtx io.ReadCloser
|
buildCtx io.ReadCloser
|
||||||
err error
|
err error
|
||||||
)
|
|
||||||
|
|
||||||
specifiedContext := options.context
|
|
||||||
|
|
||||||
var (
|
|
||||||
contextDir string
|
contextDir string
|
||||||
tempDir string
|
tempDir string
|
||||||
relDockerfile string
|
relDockerfile string
|
||||||
|
@ -150,6 +145,7 @@ func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
|
||||||
buildBuff io.Writer
|
buildBuff io.Writer
|
||||||
)
|
)
|
||||||
|
|
||||||
|
specifiedContext := options.context
|
||||||
progBuff = dockerCli.Out()
|
progBuff = dockerCli.Out()
|
||||||
buildBuff = dockerCli.Out()
|
buildBuff = dockerCli.Out()
|
||||||
if options.quiet {
|
if options.quiet {
|
||||||
|
|
Loading…
Reference in New Issue