diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-23 10:16:17 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-23 17:18:49 +0900 |
commit | 2e3cd1dc3e30f4725b18032b85a36f208c9528bc (patch) | |
tree | 03b319dd2a715c27aa7ca25a892df86aa956416e /lib/rubygems/user_interaction.rb | |
parent | 19e9c4004b9d137ad48757f3f4c2d92257e6c2c4 (diff) |
[rubygems/rubygems] Enabled Style/RedundantReturn cop
https://github.com/rubygems/rubygems/commit/05cc97bdf8
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7582
Diffstat (limited to 'lib/rubygems/user_interaction.rb')
-rw-r--r-- | lib/rubygems/user_interaction.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/user_interaction.rb b/lib/rubygems/user_interaction.rb index 12592e4db2..7d4b1cb409 100644 --- a/lib/rubygems/user_interaction.rb +++ b/lib/rubygems/user_interaction.rb @@ -236,7 +236,7 @@ class Gem::StreamUI return nil, nil unless result result = result.strip.to_i - 1 - return list[result], result + [list[result], result] end ## @@ -273,7 +273,7 @@ class Gem::StreamUI end end - return result + result end ## |