From af87943fd0d1c77031056b49a6ec22586bfc002c Mon Sep 17 00:00:00 2001 From: Cillian O'Ruanaidh Date: Thu, 30 Jun 2022 11:23:30 +0100 Subject: [PATCH] Change 'if !' to 'unless' in OrderCyclesList Co-authored-by: Maikel --- app/services/shop/order_cycles_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/shop/order_cycles_list.rb b/app/services/shop/order_cycles_list.rb index e51d3aed5f..af4b9cc63f 100644 --- a/app/services/shop/order_cycles_list.rb +++ b/app/services/shop/order_cycles_list.rb @@ -8,7 +8,7 @@ module Shop end def self.ready_for_checkout_for(distributor, customer) - return OrderCycle.none if !distributor.ready_for_checkout? + return OrderCycle.none unless distributor.ready_for_checkout? new(distributor, customer).call end