mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-25 05:45:15 +00:00
Apply suggestions from code review
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -86,6 +86,6 @@ class DfcRequest
|
||||
token: nil,
|
||||
refresh_token: nil
|
||||
)
|
||||
throw e
|
||||
raise
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user