Skip to content

Commit 5b42232

Browse files
committed
Refactoring: use Tempfile#unlink instead of File.unlink
1 parent 08904f4 commit 5b42232

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/daemon_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def run_command(command)
629629
end
630630
ensure
631631
begin
632-
File.unlink(tempfile_path) if tempfile_path
632+
tempfile.unlink if tempfile
633633
rescue SystemCallError
634634
nil
635635
end

0 commit comments

Comments
 (0)