mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
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:
@@ -136,20 +136,16 @@ func (out *lastProgressOutput) WriteProgress(prog progress.Progress) error {
|
||||
func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
|
||||
|
||||
var (
|
||||
buildCtx io.ReadCloser
|
||||
err error
|
||||
)
|
||||
|
||||
specifiedContext := options.context
|
||||
|
||||
var (
|
||||
buildCtx io.ReadCloser
|
||||
err error
|
||||
contextDir string
|
||||
tempDir string
|
||||
relDockerfile string
|
||||
progBuff io.Writer
|
||||
buildBuff io.Writer
|
||||
)
|
||||
|
||||
|
||||
specifiedContext := options.context
|
||||
progBuff = dockerCli.Out()
|
||||
buildBuff = dockerCli.Out()
|
||||
if options.quiet {
|
||||
|
||||
Reference in New Issue
Block a user