Browse Source

Apply Rubocop Performance/DoubleStartEndWith (#23442)

closed-social-glitch-2
Nick Schonning 1 year ago
committed by GitHub
parent
commit
ef8988aef2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/lib/delivery_failure_tracker.rb

+ 1
- 1
app/lib/delivery_failure_tracker.rb View File

@ -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!

Loading…
Cancel
Save