1
0

Break early in l rule

This commit is contained in:
Tim Kächele 2023-09-03 08:31:52 +02:00
parent c8396afca5
commit 81e0b71ff1

View File

@ -22,9 +22,10 @@ module PlanetExpressExpress
next if shipment[:provider] != :LP next if shipment[:provider] != :LP
lp_count += 1 lp_count += 1
next if lp_count != 3 if lp_count == 3
shipment[:discount] = shipment[:price]
shipment[:discount] = shipment[:price] break
end
end end
end end
end end