diff options
| author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-06-15 19:06:46 +0900 |
|---|---|---|
| committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2018-06-15 19:12:29 +0900 |
| commit | b6d5d9d4a1724ffe220057a2771c10830239ae23 (patch) | |
| tree | d2fce58180d402ca2d33c2016f94fb6422825671 /lib/bundler/source | |
| parent | f24a132cf986029f7418bf63b07c2c237ccbede9 (diff) | |
| download | bundler-b6d5d9d4a1724ffe220057a2771c10830239ae23.tar.gz | |
Style
Diffstat (limited to 'lib/bundler/source')
| -rw-r--r-- | lib/bundler/source/rubygems/remote.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/source/rubygems/remote.rb b/lib/bundler/source/rubygems/remote.rb index 21b8a7eb3a..b45f33770a 100644 --- a/lib/bundler/source/rubygems/remote.rb +++ b/lib/bundler/source/rubygems/remote.rb @@ -26,11 +26,7 @@ module Bundler cache_uri = original_uri || uri # URI::File of Ruby 2.6 returns empty string when given "file://". - if defined?(URI::File) && cache_uri.is_a?(URI::File) - host = nil - else - host = cache_uri.host - end + host = defined?(URI::File) && cache_uri.is_a?(URI::File) ? nil : cache_uri.host uri_parts = [host, cache_uri.user, cache_uri.port, cache_uri.path] uri_digest = SharedHelpers.digest(:MD5).hexdigest(uri_parts.compact.join(".")) |
