summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/environment_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-23 10:16:17 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-23 17:18:49 +0900
commit2e3cd1dc3e30f4725b18032b85a36f208c9528bc (patch)
tree03b319dd2a715c27aa7ca25a892df86aa956416e /lib/rubygems/commands/environment_command.rb
parent19e9c4004b9d137ad48757f3f4c2d92257e6c2c4 (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/commands/environment_command.rb')
-rw-r--r--lib/rubygems/commands/environment_command.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/commands/environment_command.rb b/lib/rubygems/commands/environment_command.rb
index d1b7d07a1d..620da5a023 100644
--- a/lib/rubygems/commands/environment_command.rb
+++ b/lib/rubygems/commands/environment_command.rb
@@ -16,7 +16,7 @@ class Gem::Commands::EnvironmentCommand < Gem::Command
platform display the supported gem platforms
<omitted> display everything
EOF
- return args.gsub(/^\s+/, "")
+ args.gsub(/^\s+/, "")
end
def description # :nodoc:
@@ -170,6 +170,6 @@ lib/rubygems/defaults/operating_system.rb
end
end
- return nil
+ nil
end
end