Use File.open instead of File.write shortcut.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-05-12 18:59:43 +09:00
parent b3db34c2a8
commit 5a88904fe8
+5 -1
View File
@@ -132,7 +132,11 @@ file presym_file => cfiles+rbfiles do
presyms = File.readlines(presym_file, chomp: true) rescue []
if presyms != symbols
rm_f presym_file
File.write(presym_file, symbols.join("\n"))
File.open(presym_file, "w") do |f|
symbols.each do|line|
f.puts line
end
end
end
end