diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-07 20:06:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-08 10:06:48 +0900 |
commit | ef8988aef2b616305c7f3038dc555d22ff1125fd (patch) | |
tree | 99d60e73f8b878e962c553309adadf669c27cc2b /app/lib | |
parent | c92e033cdd3e1f5c20a8b297a2e72d26f8ddd26f (diff) |
Apply Rubocop Performance/DoubleStartEndWith (#23442)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/delivery_failure_tracker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/delivery_failure_tracker.rb b/app/lib/delivery_failure_tracker.rb index 66c1fd8c0..c90716632 100644 --- a/app/lib/delivery_failure_tracker.rb +++ b/app/lib/delivery_failure_tracker.rb @@ -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! |