Fix a couple of offences pickup up by rubocop

This commit is contained in:
Rob Harrington
2017-11-25 13:04:25 +11:00
parent 8ba1a909ca
commit 1bf2f7ad03
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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