Merge pull request #736 from fuweid/reading

dockerfile2llb/pipe: remove the useless assignment
docker-18.09
Tõnis Tiigi 2018-11-28 22:33:42 -08:00 committed by GitHub
commit 222b028d58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}