summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-12-26 20:23:35 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-01-11 13:51:52 +0900
commitaa908aa0655b6c0a566675e1ef9104aae7a84925 (patch)
treef5716662ca92a2bcb421fe1eeb65565ee1d4ef84
parentef0705b3c2339055d9b5c669fb6192275c39020a (diff)
[rubygems/rubygems] Remove old condition no longer necessary
https://github.com/rubygems/rubygems/commit/701980b240
-rw-r--r--lib/rubygems/commands/update_command.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb
index 10ae6d9a93..170cdd297f 100644
--- a/lib/rubygems/commands/update_command.rb
+++ b/lib/rubygems/commands/update_command.rb
@@ -294,9 +294,7 @@ command to remove old versions.
args << "--prefix" << Gem.prefix if Gem.prefix
args << "--no-document" unless options[:document].include?("rdoc") || options[:document].include?("ri")
args << "--no-format-executable" if options[:no_format_executable]
- args << "--previous-version" << Gem::VERSION if
- options[:system] == true ||
- Gem::Version.new(options[:system]) >= Gem::Version.new(2)
+ args << "--previous-version" << Gem::VERSION
args
end