From 2e3cd1dc3e30f4725b18032b85a36f208c9528bc Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 23 Mar 2023 10:16:17 +0900 Subject: [rubygems/rubygems] Enabled Style/RedundantReturn cop https://github.com/rubygems/rubygems/commit/05cc97bdf8 --- lib/rubygems/commands/update_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rubygems/commands/update_command.rb') diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb index facccc5c03..45df205e1d 100644 --- a/lib/rubygems/commands/update_command.rb +++ b/lib/rubygems/commands/update_command.rb @@ -232,7 +232,7 @@ command to remove old versions. highest_remote_tup = highest_remote_name_tuple(rubygems_update) target = highest_remote_tup ? highest_remote_tup.version : version - return target, requirement + [target, requirement] end def update_gem(name, version = Gem::Requirement.default) -- cgit v1.2.3