Use fat arrow for write callback

This commit is contained in:
Kevin Sawicki
2013-06-13 18:38:23 -07:00
parent 5ca4e8006e
commit 52ffa2d8c0

View File

@@ -46,7 +46,7 @@ class FileView extends View
@logError("Error creating temp directory: #{tempDirPath}", error)
else
tempFilePath = path.join(tempDirPath, path.basename(@archivePath), @entry.getName())
fsUtils.write tempFilePath, contents, (error) ->
fsUtils.write tempFilePath, contents, (error) =>
if error?
@logError("Error writing to #{tempFilePath}", error)
else