dockerfile2llb/pipe: remove the useless assignment

Signed-off-by: Wei Fu <fuweid89@gmail.com>
docker-18.09
Wei Fu 2018-11-28 11:29:05 +08:00
parent 8cf9bec86a
commit 2a7287a189
2 changed files with 0 additions and 3 deletions

View File

@ -250,7 +250,6 @@ func Dockerfile2LLB(ctx context.Context, dt []byte, opt ConvertOpt) (*llb.State,
}
}
d.stage.BaseName = ref.String()
_ = ref
if len(img.RootFS.DiffIDs) == 0 {
isScratch = true
// schema1 images can't return diffIDs so double check :(

View File

@ -89,7 +89,6 @@ func New(req Request) *Pipe {
roundTripCh := &channel{}
pw := &sender{
req: req,
recvChannel: cancelCh,
sendChannel: roundTripCh,
}
pr := &receiver{
@ -125,7 +124,6 @@ func New(req Request) *Pipe {
type sender struct {
status Status
req Request
recvChannel *channel
sendChannel *channel
mu sync.Mutex
}