mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
null check fsPath on unlink file
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user