Skip to content

Commit

Permalink
chore: remove impossible err check
Browse files Browse the repository at this point in the history
`err` is not set in this conditional branch, so the err check is
unneccessary and so can be removed.

Signed-off-by: Justin Chadwell <[email protected]>
  • Loading branch information
jedevc committed Apr 2, 2024
1 parent cbb116d commit 130b7d1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions solver/llbsolver/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,7 @@ func (b *llbBridge) loadResult(ctx context.Context, def *pb.Definition, cacheImp
if srcPol != nil {
pol = append([]*spb.Policy{srcPol}, pol...)
}

polEngine = sourcepolicy.NewEngine(pol)
if err != nil {
return nil, err
}
}
var cms []solver.CacheManager
for _, im := range cacheImports {
Expand Down

0 comments on commit 130b7d1

Please sign in to comment.