Skip to content

Commit 78bf0b4

Browse files
committed
chore: Lint fix Lint/RedundantSafeNavigation
1 parent 3ee6062 commit 78bf0b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gemstash/upstream.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def initialize(upstream, user_agent: nil)
1818
url = "https://#{url}" unless %r{^https?://}.match?(url)
1919
@uri = URI(url)
2020
@user_agent = user_agent
21-
raise "URL '#{@uri}' is not valid!" unless @uri.to_s&.match?(URI::DEFAULT_PARSER.make_regexp)
21+
raise "URL '#{@uri}' is not valid!" unless @uri.to_s.match?(URI::DEFAULT_PARSER.make_regexp)
2222
end
2323

2424
def url(path = nil, params = nil)

0 commit comments

Comments
 (0)