mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Use fat arrow for write callback
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user