Skip to content
Snippets Groups Projects
Unverified Commit ef8988ae authored by Nick Schonning's avatar Nick Schonning Committed by GitHub
Browse files

Apply Rubocop Performance/DoubleStartEndWith (#23442)

parent c92e033c
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ class DeliveryFailureTracker
FAILURE_DAYS_THRESHOLD = 7
def initialize(url_or_host)
@host = url_or_host.start_with?('https://') || url_or_host.start_with?('http://') ? Addressable::URI.parse(url_or_host).normalized_host : url_or_host
@host = url_or_host.start_with?('https://', 'http://') ? Addressable::URI.parse(url_or_host).normalized_host : url_or_host
end
def track_failure!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment