Skip to content

Commit

Permalink
Temp - fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-kirwan committed Dec 2, 2022
1 parent a215fbd commit 99583fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ class ApplicationController < ActionController::Base
include Slimmer::Template

before_action do
begin
@individual_stylesheets = GovukPublishingComponents::AppHelpers::AssetHelper.new
@individual_stylesheets = GovukPublishingComponents::AppHelpers::AssetHelper.new
rescue NameError
logger.warn("The version of the components gem being used doesn't support individual asset loading.")
end
end

rescue_from GdsApi::TimedOutException, with: :error_503
rescue_from GdsApi::HTTPForbidden, with: :error_403
Expand Down

0 comments on commit 99583fc

Please sign in to comment.