diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-14 08:05:35 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-14 08:05:35 +0000 |
commit | f61896ae18d4d0c3fa20c957577a34e38d9d8aad (patch) | |
tree | b383b59a1a2761c5fa2110fdd7712e80f02d08ea /lib/uri | |
parent | 90e4b4fb0c63cbf9ed6f170dc21ada7f5c8d6e92 (diff) | |
download | ruby-f61896ae18d4d0c3fa20c957577a34e38d9d8aad.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.rb | 2 |
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 |