Permalink
Browse files

Unlink temp file just after creation

  • Loading branch information...
1 parent d4e4f7f commit 70271ffcf13d8c38fc9a1c4c28e2ae4b0fed3073 @scotchi scotchi committed Oct 24, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 Ruby/lib/directededge/updatejob.rb
@@ -108,6 +108,7 @@ def validate_updates(item)
def temp(action)
file = Tempfile.new("#{@database.name}-#{action}")
+ file.unlink
file.puts(HEADER)
file
end

0 comments on commit 70271ff

Please sign in to comment.