Skip to content

Commit

Permalink
fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellani committed Dec 26, 2023
1 parent 7a2179d commit ae3f53f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion app/controllers/payment_gateways/paypal_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ae3f53f

Please sign in to comment.