From 130b7d142a00ab90d4a6595956c50524ff6494e5 Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Tue, 2 Apr 2024 10:44:50 +0100 Subject: [PATCH] chore: remove impossible err check `err` is not set in this conditional branch, so the err check is unneccessary and so can be removed. Signed-off-by: Justin Chadwell --- solver/llbsolver/bridge.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/solver/llbsolver/bridge.go b/solver/llbsolver/bridge.go index 5f1c83bb122c..0eea4e4ade62 100644 --- a/solver/llbsolver/bridge.go +++ b/solver/llbsolver/bridge.go @@ -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 {