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,9 +99,7 @@ func (b *llbBridge) Solve(ctx context.Context, req frontend.SolveRequest) (res *
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if req.Definition == nil || req.Definition.Def == nil {
|
return &frontend.Result{}, nil
|
||||||
return &frontend.Result{}, nil
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := res.EachRef(func(r solver.CachedResult) error {
|
if err := res.EachRef(func(r solver.CachedResult) error {
|
||||||
|
|
Loading…
Reference in New Issue