Merge pull request #116 from apamment/master

Fixes thtrue in #115
This commit is contained in:
Bryan Ashby 2017-06-21 21:42:38 -06:00 committed by GitHub
commit 4892e20049
1 changed files with 2 additions and 2 deletions

View File

@ -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 {