* lib/fileutils.rb: remove unnecessary initialization. by @vipulnsward [fix GH-463]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7416073cde
commit
218755f306
@ -1150,7 +1150,7 @@ module FileUtils
|
|||||||
def touch(list, options = {})
|
def touch(list, options = {})
|
||||||
fu_check_options options, OPT_TABLE['touch']
|
fu_check_options options, OPT_TABLE['touch']
|
||||||
list = fu_list(list)
|
list = fu_list(list)
|
||||||
created = nocreate = options[:nocreate]
|
nocreate = options[:nocreate]
|
||||||
t = options[:mtime]
|
t = options[:mtime]
|
||||||
if options[:verbose]
|
if options[:verbose]
|
||||||
fu_output_message "touch #{nocreate ? '-c ' : ''}#{t ? t.strftime('-t %Y%m%d%H%M.%S ') : ''}#{list.join ' '}"
|
fu_output_message "touch #{nocreate ? '-c ' : ''}#{t ? t.strftime('-t %Y%m%d%H%M.%S ') : ''}#{list.join ' '}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user