From 500555b834d061a0abc7681b0a42fa986761d995 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Fri, 8 Apr 2022 11:33:54 +0200 Subject: [PATCH] linter Signed-off-by: Nicolas De Loof --- pkg/compose/build_classic.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pkg/compose/build_classic.go b/pkg/compose/build_classic.go index 6f76999cf..6b578dd7e 100644 --- a/pkg/compose/build_classic.go +++ b/pkg/compose/build_classic.go @@ -143,17 +143,8 @@ func (s *composeService) doBuildClassicSimpleImage(ctx context.Context, options return "", err } - // if up to this point nothing has set the context then we must have another - // way for sending it(streaming) and set the context to the Dockerfile - if dockerfileCtx != nil && buildCtx == nil { - buildCtx = dockerfileCtx - } - progressOutput := streamformatter.NewProgressOutput(progBuff) - var body io.Reader - if buildCtx != nil { - body = progress.NewProgressReader(buildCtx, progressOutput, 0, "", "Sending build context to Docker daemon") - } + body := progress.NewProgressReader(buildCtx, progressOutput, 0, "", "Sending build context to Docker daemon") configFile := s.configFile() creds, err := configFile.GetAllCredentials()