[前][次][番号順一覧][スレッド一覧]

ruby-changes:61531

From: David <ko1@a...>
Date: Fri, 5 Jun 2020 07:34:10 +0900 (JST)
Subject: [ruby-changes:61531] 1f9e684c77 (master): [rubygems/rubygems] Remove unnecessary parenthesis

https://git.ruby-lang.org/ruby.git/commit/?id=1f9e684c77

From 1f9e684c7755c2b65a68565807f4547f1692b616 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Tue, 2 Jun 2020 10:15:39 +0200
Subject: [rubygems/rubygems] Remove unnecessary parenthesis

https://github.com/rubygems/rubygems/commit/97772bb066

diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb
index 055f329..2f86964 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: https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/setup_command.rb#L547
 
   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: https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/setup_command.rb#L555
   # 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]