Skip to content

Commit

Permalink
Auto-fix rubocop failures
Browse files Browse the repository at this point in the history
This follows an upgrade of `rubocop-govuk` which now enforces different
rules.
  • Loading branch information
brucebolt committed Jan 20, 2025
1 parent 1ae64d6 commit b4e6d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/link_checker/uri_checker/http_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ def check_request

add_problem(SlowResponse.new(from_redirect: from_redirect?)) if response_time > RESPONSE_TIME_WARNING

if response.status == 404 || response.status == 410
if [404, 410].include?(response.status)
add_problem(PageNotFound.new(from_redirect: from_redirect?))
elsif response.status == 401 || response.status == 403
elsif [401, 403].include?(response.status)
if response.headers["cf-mitigated"] == "challenge"
add_problem(PageBlocksBots.new(from_redirect: from_redirect?))
else
Expand Down

0 comments on commit b4e6d3a

Please sign in to comment.