diff --git a/core/scanner_tossers/ftn_bso.js b/core/scanner_tossers/ftn_bso.js index 645c4b5f..21c8b1e0 100644 --- a/core/scanner_tossers/ftn_bso.js +++ b/core/scanner_tossers/ftn_bso.js @@ -293,9 +293,9 @@ function FTNMessageScanTossModule() { async.detectSeries(EXT_SUFFIXES, (suffix, callback) => { const checkFileName = fileName + suffix; fs.stat(paths.join(basePath, checkFileName), err => { - callback((err && 'ENOENT' === err.code) ? true : false); + callback(null, (err && 'ENOENT' === err.code) ? true : false); }); - }, finalSuffix => { + }, (err, finalSuffix) => { if(finalSuffix) { cb(null, paths.join(basePath, fileName + finalSuffix)); } else {