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
Ian Campbell 2018-08-30 14:01:27 +01:00
parent ab7928edff
commit cc83b34572
1 changed files with 1 additions and 3 deletions

View File

@ -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)