Navigation Menu

Skip to content

Commit

Permalink
Remove needless third parameter for Tempfile.open
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 16, 2015
1 parent 869df87 commit 5efd729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/droonga/safe_file_writer.rb
Expand Up @@ -24,7 +24,7 @@ def write(path, contents=nil)
# Don't output the file directly to prevent loading of incomplete file!
path = Pathname(path).expand_path
FileUtils.mkdir_p(path.dirname.to_s)
Tempfile.open(path.basename.to_s, path.dirname.to_s, "w") do |output|
Tempfile.open(path.basename.to_s, path.dirname.to_s) do |output|
if block_given?
yield(output, output.path)
else
Expand Down

0 comments on commit 5efd729

Please sign in to comment.