mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-16 23:03:56 +00:00
Add in missing error check
This commit is contained in:
parent
95373d2b7e
commit
49b7cdc854
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ module.exports = OutputFileFinder =
|
|||
for resource in resources
|
||||
incomingResources[resource.path] = true
|
||||
|
||||
OutputFileFinder._getAllFiles directory, (error, allFiles) ->
|
||||
OutputFileFinder._getAllFiles directory, (error, allFiles = []) ->
|
||||
return callback(error) if error?
|
||||
jobs = []
|
||||
outputFiles = []
|
||||
for file in allFiles
|
||||
|
|
Loading…
Reference in a new issue