Break early in l rule
This commit is contained in:
parent
c8396afca5
commit
81e0b71ff1
@ -22,9 +22,10 @@ module PlanetExpressExpress
|
||||
next if shipment[:provider] != :LP
|
||||
|
||||
lp_count += 1
|
||||
next if lp_count != 3
|
||||
|
||||
if lp_count == 3
|
||||
shipment[:discount] = shipment[:price]
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user