Skip to content

Commit 500555b

Browse files
committed
linter
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent e766352 commit 500555b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

pkg/compose/build_classic.go

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,8 @@ func (s *composeService) doBuildClassicSimpleImage(ctx context.Context, options
143143
return "", err
144144
}
145145

146-
// if up to this point nothing has set the context then we must have another
147-
// way for sending it(streaming) and set the context to the Dockerfile
148-
if dockerfileCtx != nil && buildCtx == nil {
149-
buildCtx = dockerfileCtx
150-
}
151-
152146
progressOutput := streamformatter.NewProgressOutput(progBuff)
153-
var body io.Reader
154-
if buildCtx != nil {
155-
body = progress.NewProgressReader(buildCtx, progressOutput, 0, "", "Sending build context to Docker daemon")
156-
}
147+
body := progress.NewProgressReader(buildCtx, progressOutput, 0, "", "Sending build context to Docker daemon")
157148

158149
configFile := s.configFile()
159150
creds, err := configFile.GetAllCredentials()

0 commit comments

Comments
 (0)