lib/io_streams/file/writer.rb in iostreams-0.20.2 vs lib/io_streams/file/writer.rb in iostreams-0.20.3

- old
+ new

@@ -11,10 +11,10 @@ IOStreams::File::Path.mkpath(file_name) begin ::File.open(file_name, 'wb', &block) rescue StandardError => e - File.unlink(file_name) if File.exist?(file_name) + ::File.unlink(file_name) if ::File.exist?(file_name) raise(e) end end end end