mirror of https://github.com/docker/cli.git
Merge pull request #28117 from ping035627/ping035627-patch-1107
Modify to improve code readability
This commit is contained in:
commit
6edfb7558f
|
@ -136,13 +136,8 @@ func (out *lastProgressOutput) WriteProgress(prog progress.Progress) error {
|
||||||
func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
|
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