mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix a couple of offences pickup up by rubocop
This commit is contained in:
@@ -16,7 +16,7 @@ module OpenFoodNetwork
|
||||
summary_for(order).record_success(order)
|
||||
end
|
||||
|
||||
def record_issue(type, order, message=nil)
|
||||
def record_issue(type, order, message = nil)
|
||||
summary_for(order).record_issue(type, order, message)
|
||||
end
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ module OpenFoodNetwork
|
||||
|
||||
def orders_affected_by(type)
|
||||
case type
|
||||
when :other then Spree::Order.where(id: unrecorded_ids)
|
||||
else Spree::Order.where(id: issues[type].keys)
|
||||
when :other then Spree::Order.where(id: unrecorded_ids)
|
||||
else Spree::Order.where(id: issues[type].keys)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user