diff --git a/Gemfile.lock b/Gemfile.lock index b38179853a2..a46d72f447b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -848,7 +848,7 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.2) - rubocop (1.69.2) + rubocop (1.70.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -862,8 +862,8 @@ GEM parser (>= 3.3.1.0) rubocop-capybara (2.21.0) rubocop (~> 1.41) - rubocop-govuk (5.0.7) - rubocop (= 1.69.2) + rubocop-govuk (5.0.8) + rubocop (= 1.70.0) rubocop-ast (= 1.37.0) rubocop-capybara (= 2.21.0) rubocop-rails (= 2.28.0) diff --git a/app/controllers/admin/fact_check_requests_controller.rb b/app/controllers/admin/fact_check_requests_controller.rb index 6a8a9922f10..0be7e0c5f63 100644 --- a/app/controllers/admin/fact_check_requests_controller.rb +++ b/app/controllers/admin/fact_check_requests_controller.rb @@ -57,7 +57,7 @@ def enforce_permissions! def mailer_url_options options = { host: request.host } options[:protocol] = request.protocol unless request.protocol == "http://" - options[:port] = request.port unless request.port == 80 || request.port == 443 + options[:port] = request.port unless [80, 443].include?(request.port) options end