We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37ea09e + 78bf0b4 commit 14947dbCopy full SHA for 14947db
lib/gemstash/upstream.rb
@@ -18,7 +18,7 @@ def initialize(upstream, user_agent: nil)
18
url = "https://#{url}" unless %r{^https?://}.match?(url)
19
@uri = URI(url)
20
@user_agent = user_agent
21
- raise "URL '#{@uri}' is not valid!" unless @uri.to_s&.match?(URI::DEFAULT_PARSER.make_regexp)
+ raise "URL '#{@uri}' is not valid!" unless @uri.to_s.match?(URI::DEFAULT_PARSER.make_regexp)
22
end
23
24
def url(path = nil, params = nil)
0 commit comments