Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusbv committed Nov 27, 2024
1 parent 6b8f7b2 commit a7e6212
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def path_allowed?(headers)
all_allowed_paths(headers).find { |allowed_path| path =~ /^#{Regexp.escape(allowed_path)}/ }
end

# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/PerceivedComplexity
def all_allowed_paths(headers)
# return all versions of the same product and arch
# (that the system has available with that subscription)
Expand Down Expand Up @@ -71,5 +73,7 @@ def all_allowed_paths(headers)
end
allowed_paths
end
# rubocop:enable Metrics/CyclomaticComplexity
# rubocop:enable Metrics/PerceivedComplexity
end
end

0 comments on commit a7e6212

Please sign in to comment.