From 52806a35eedf7fdc56bbf1994a9ff6ecb8e29908 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 13 Jun 2023 18:51:57 +0100 Subject: [PATCH] Fix Rubocop complaint --- app/controllers/split_checkout_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/split_checkout_controller.rb b/app/controllers/split_checkout_controller.rb index aa27cfbfcb..c7396b39dd 100644 --- a/app/controllers/split_checkout_controller.rb +++ b/app/controllers/split_checkout_controller.rb @@ -226,7 +226,7 @@ class SplitCheckoutController < ::BaseController adjustment = voucher.create_adjustment(voucher.code, @order) - if !adjustment.valid? + unless adjustment.valid? @order.errors.add(:voucher, I18n.t('split_checkout.errors.add_voucher_error')) adjustment.errors.each { |error| @order.errors.import(error) } return false