1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Remove misleading comment

That line means that the class supports both `URI`'s and `String`'s
being passed to `initialize`. I don't see how that's related to 1.8.

https://github.com/rubygems/rubygems/commit/77aeff4515
This commit is contained in:
David Rodríguez 2020-03-26 18:43:34 +01:00 committed by Hiroshi SHIBATA
parent 7e1e60b044
commit 7f8f33ebb9

View file

@ -28,7 +28,7 @@ class Gem::Resolver::APISet < Gem::Resolver::Set
def initialize(dep_uri = 'https://rubygems.org/api/v1/dependencies')
super()
dep_uri = URI dep_uri unless URI === dep_uri # for ruby 1.8
dep_uri = URI dep_uri unless URI === dep_uri
@dep_uri = dep_uri
@uri = dep_uri + '../..'