mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 22:22:07 +00:00
null check fsPath on unlink file
This commit is contained in:
parent
9e8c27f46b
commit
e0f39da616
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,8 @@ module.exports =
|
|||
stream.pipe writeStream
|
||||
|
||||
deleteFile: (fsPath, callback)->
|
||||
if !fsPath? or fsPath == ""
|
||||
return callback()
|
||||
logger.log fsPath:fsPath, "removing local temp file"
|
||||
fs.unlink fsPath, callback
|
||||
|
||||
|
|
Loading…
Reference in a new issue