solver: remove redundant conditional
There is now no way to reach this point with the test being false. Signed-off-by: Ian Campbell <ijc@docker.com>docker-18.09
parent
ab7928edff
commit
cc83b34572
|
@ -99,10 +99,8 @@ func (b *llbBridge) Solve(ctx context.Context, req frontend.SolveRequest) (res *
|
|||
return nil, err
|
||||
}
|
||||
} else {
|
||||
if req.Definition == nil || req.Definition.Def == nil {
|
||||
return &frontend.Result{}, nil
|
||||
}
|
||||
}
|
||||
|
||||
if err := res.EachRef(func(r solver.CachedResult) error {
|
||||
wr, ok := r.Sys().(*worker.WorkerRef)
|
||||
|
|
Loading…
Reference in New Issue