mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user