From 1bf2f7ad03d3278bbb67e4ea5f512df3873e63a6 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Sat, 25 Nov 2017 13:04:25 +1100 Subject: [PATCH] Fix a couple of offences pickup up by rubocop --- lib/open_food_network/standing_order_summarizer.rb | 2 +- lib/open_food_network/standing_order_summary.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/open_food_network/standing_order_summarizer.rb b/lib/open_food_network/standing_order_summarizer.rb index 191c8a11c0..8ec203c0a2 100644 --- a/lib/open_food_network/standing_order_summarizer.rb +++ b/lib/open_food_network/standing_order_summarizer.rb @@ -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 diff --git a/lib/open_food_network/standing_order_summary.rb b/lib/open_food_network/standing_order_summary.rb index 5ff418e507..3a49a29c1e 100644 --- a/lib/open_food_network/standing_order_summary.rb +++ b/lib/open_food_network/standing_order_summary.rb @@ -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