mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
remove unnecessary return
This commit is contained in:
parent
ae064e8997
commit
e84d6305f3
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ module.exports = OutputFileFinder = {
|
|||
resources.map((resource) => resource.path)
|
||||
)
|
||||
|
||||
return OutputFileFinder._getAllFiles(directory, function (error, allFiles) {
|
||||
OutputFileFinder._getAllFiles(directory, function (error, allFiles) {
|
||||
if (allFiles == null) {
|
||||
allFiles = []
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ module.exports = OutputFileFinder = {
|
|||
let stdout = ''
|
||||
proc.stdout.setEncoding('utf8').on('data', (chunk) => (stdout += chunk))
|
||||
proc.on('error', callback)
|
||||
return proc.on('close', function (code) {
|
||||
proc.on('close', function (code) {
|
||||
if (code !== 0) {
|
||||
logger.warn(
|
||||
{ directory, code },
|
||||
|
|
Loading…
Reference in a new issue