From 99583fc38a777fe9ae7521302ff0442934d19ad0 Mon Sep 17 00:00:00 2001 From: Jon Kirwan <87758239+jon-kirwan@users.noreply.github.com> Date: Fri, 2 Dec 2022 10:17:21 +0000 Subject: [PATCH] Temp - fix linting error --- app/controllers/application_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f830d3a98ca..af65be18034 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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