From 1f9e684c7755c2b65a68565807f4547f1692b616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 2 Jun 2020 10:15:39 +0200 Subject: [PATCH] [rubygems/rubygems] Remove unnecessary parenthesis https://github.com/rubygems/rubygems/commit/97772bb066 --- lib/rubygems/commands/setup_command.rb | 4 ++-- 1 file 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