Use break instead of return in StockItem#process_backorders

We are not using the return value of this method anywhere.
This commit is contained in:
Kristina Lim
2020-05-14 05:16:58 +08:00
committed by Luis Ramos
parent 0a1cb71ee4
commit fb20f220c0

View File

@@ -47,7 +47,7 @@ module Spree
def process_backorders
backordered_inventory_units.each do |unit|
return unless in_stock?
break unless in_stock?
unit.fill_backorder
end