dockerfile2llb/pipe: remove the useless assignment
Signed-off-by: Wei Fu <fuweid89@gmail.com>docker-18.09
parent
8cf9bec86a
commit
2a7287a189
|
@ -250,7 +250,6 @@ func Dockerfile2LLB(ctx context.Context, dt []byte, opt ConvertOpt) (*llb.State,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
d.stage.BaseName = ref.String()
|
d.stage.BaseName = ref.String()
|
||||||
_ = ref
|
|
||||||
if len(img.RootFS.DiffIDs) == 0 {
|
if len(img.RootFS.DiffIDs) == 0 {
|
||||||
isScratch = true
|
isScratch = true
|
||||||
// schema1 images can't return diffIDs so double check :(
|
// schema1 images can't return diffIDs so double check :(
|
||||||
|
|
|
@ -89,7 +89,6 @@ func New(req Request) *Pipe {
|
||||||
roundTripCh := &channel{}
|
roundTripCh := &channel{}
|
||||||
pw := &sender{
|
pw := &sender{
|
||||||
req: req,
|
req: req,
|
||||||
recvChannel: cancelCh,
|
|
||||||
sendChannel: roundTripCh,
|
sendChannel: roundTripCh,
|
||||||
}
|
}
|
||||||
pr := &receiver{
|
pr := &receiver{
|
||||||
|
@ -125,7 +124,6 @@ func New(req Request) *Pipe {
|
||||||
type sender struct {
|
type sender struct {
|
||||||
status Status
|
status Status
|
||||||
req Request
|
req Request
|
||||||
recvChannel *channel
|
|
||||||
sendChannel *channel
|
sendChannel *channel
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue