Apply suggestions from code review

Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
David Cook
2025-01-22 14:05:02 +11:00
committed by GitHub
parent 00b78f47e3
commit ff3af2fb49
2 changed files with 3 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ module Admin
rescue Rack::OAuth2::Client::Error => e
flash[:error] = I18n.t(
'admin.dfc_product_imports.index.oauth_error_html',
message: ActionController::Base.helpers.sanitize(e.message),
oidc_settings_link: ActionController::Base.helpers.link_to(
message: helpers.sanitize(e.message),
oidc_settings_link: helpers.link_to(
I18n.t('spree.admin.tab.oidc_settings'), Rails.application.routes.url_helpers.admin_oidc_settings_path
)
).html_safe

View File

@@ -86,6 +86,6 @@ class DfcRequest
token: nil,
refresh_token: nil
)
throw e
raise
end
end