Skip to content

Commit

Permalink
Remove parantheses in ternary condition
Browse files Browse the repository at this point in the history
Co-Authored-By: Yamagishi Kazutoshi <ykzts@desire.sh>
  • Loading branch information
Gargron and ykzts committed Apr 11, 2020
1 parent e6ad835 commit 86b9376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/delivery_failure_tracker.rb
Expand Up @@ -4,7 +4,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://') || url_or_host.start_with?('http://') ? Addressable::URI.parse(url_or_host).normalized_host : url_or_host
end

def track_failure!
Expand Down

0 comments on commit 86b9376

Please sign in to comment.