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

ruby-changes:31969

From: hsbt <ko1@a...>
Date: Sat, 7 Dec 2013 19:25:39 +0900 (JST)
Subject: [ruby-changes:31969] hsbt:r44048 (trunk): * lib/fileutils.rb: remove unnecessary initialization. by @vipulnsward [fix GH-463]

hsbt	2013-12-07 19:25:33 +0900 (Sat, 07 Dec 2013)

  New Revision: 44048

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44048

  Log:
    * lib/fileutils.rb: remove unnecessary initialization. by @vipulnsward [fix GH-463]

  Modified files:
    trunk/lib/fileutils.rb
Index: lib/fileutils.rb
===================================================================
--- lib/fileutils.rb	(revision 44047)
+++ lib/fileutils.rb	(revision 44048)
@@ -1150,7 +1150,7 @@ module FileUtils https://github.com/ruby/ruby/blob/trunk/lib/fileutils.rb#L1150
   def touch(list, options = {})
     fu_check_options options, OPT_TABLE['touch']
     list = fu_list(list)
-    created = nocreate = options[:nocreate]
+    nocreate = options[:nocreate]
     t = options[:mtime]
     if options[:verbose]
       fu_output_message "touch #{nocreate ? '-c ' : ''}#{t ? t.strftime('-t %Y%m%d%H%M.%S ') : ''}#{list.join ' '}"

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

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