aboutsummaryrefslogtreecommitdiffstats
path: root/lib/uri
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-14 08:05:35 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-14 08:05:35 +0000
commit059c9c1cf371e049c7481c78b76e9620da52757f (patch)
treeb383b59a1a2761c5fa2110fdd7712e80f02d08ea /lib/uri
parent6cf568f4b56dcafc5c0fe84df2c0d2491fb0c62b (diff)
downloadruby-059c9c1cf371e049c7481c78b76e9620da52757f.tar.gz
* ext/socket/lib/socket.rb: use safe navigation operator.
[fix GH-1142] Patch by @mlarraz * lib/drb/extservm.rb: ditto. * lib/net/http.rb: ditto. * lib/net/http/response.rb: ditto. * lib/scanf.rb: ditto. * lib/uri/generic.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri')
-rw-r--r--lib/uri/generic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb
index 1486a4cb25..224a16317b 100644
--- a/lib/uri/generic.rb
+++ b/lib/uri/generic.rb
@@ -1326,7 +1326,7 @@ module URI
# Destructive version of #normalize
#
def normalize!
- if path && path.empty?
+ if path&.empty?
set_path('/')
end
if scheme && scheme != scheme.downcase