Change 'if !' to 'unless' in OrderCyclesList

Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
Cillian O'Ruanaidh
2022-06-30 11:23:30 +01:00
committed by Filipe
parent efb1a326b4
commit af87943fd0

View File

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