diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-02 10:15:39 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-05 07:32:42 +0900 |
commit | 1f9e684c7755c2b65a68565807f4547f1692b616 (patch) | |
tree | 9e03cd2b6e310b8757bd606313babab2e7ebc104 /lib/rubygems/commands | |
parent | 9c55172bd08e7a3b92d521b680fd1aa095b86c85 (diff) |
[rubygems/rubygems] Remove unnecessary parenthesis
https://github.com/rubygems/rubygems/commit/97772bb066
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3184
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index 055f329a5d..2f86964b45 100644 --- a/lib/rubygems/commands/setup_command.rb +++ b/lib/rubygems/commands/setup_command.rb @@ -547,7 +547,7 @@ By default, this RubyGems will install gem as: def bundler_template_files Dir.chdir "bundler/lib" do - (Dir[File.join('bundler', 'templates', '**', '{*,.*}')]). + Dir[File.join('bundler', 'templates', '**', '{*,.*}')]. select{|f| !File.directory?(f)} end end @@ -555,7 +555,7 @@ By default, this RubyGems will install gem as: # for cleanup old bundler files def template_files_in(dir) Dir.chdir dir do - (Dir[File.join('templates', '**', '{*,.*}')]). + Dir[File.join('templates', '**', '{*,.*}')]. select{|f| !File.directory?(f)} end end |