From ae3f53fe303d526fd965f8ed6a972e3dda909898 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Tue, 26 Dec 2023 15:18:16 +0100 Subject: [PATCH] fix linting issues --- app/controllers/api/v1/base_controller.rb | 2 +- app/controllers/payment_gateways/paypal_controller.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/base_controller.rb b/app/controllers/api/v1/base_controller.rb index 2cf59888fb0..e02186843ed 100644 --- a/app/controllers/api/v1/base_controller.rb +++ b/app/controllers/api/v1/base_controller.rb @@ -54,7 +54,7 @@ def api_key def error_during_processing(exception) Bugsnag.notify(exception) - if Rails.env.development? || Rails.env.test? + if Rails.env.local? render status: :unprocessable_entity, json: json_api_error(exception.message, meta: exception.backtrace) else diff --git a/app/controllers/payment_gateways/paypal_controller.rb b/app/controllers/payment_gateways/paypal_controller.rb index c87599a8f95..56bece2e1a1 100644 --- a/app/controllers/payment_gateways/paypal_controller.rb +++ b/app/controllers/payment_gateways/paypal_controller.rb @@ -24,7 +24,8 @@ def express # At this point Paypal has *provisionally* accepted that the payment can now be placed, # and the user will be redirected to a Paypal payment page. On completion, the user is # sent back and the response is handled in the #confirm action in this controller. - redirect_to provider.express_checkout_url(pp_response, useraction: 'commit'), allow_other_host: true + redirect_to provider.express_checkout_url(pp_response, useraction: 'commit'), + allow_other_host: true else flash[:error] = Spree.t(