diff options
Diffstat (limited to 'lib/rubygems/source.rb')
-rw-r--r-- | lib/rubygems/source.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/rubygems/source.rb b/lib/rubygems/source.rb index 4f07beb1f4..85f5268fa3 100644 --- a/lib/rubygems/source.rb +++ b/lib/rubygems/source.rb @@ -67,11 +67,7 @@ class Gem::Source return -1 if !other.uri - # Returning 1 here ensures that when sorting a list of sources, the - # original ordering of sources supplied by the user is preserved. - return 1 unless @uri.to_s == other.uri.to_s - - 0 + @uri.to_s <=> other.uri.to_s else nil end |