Merge branch 'master' of github.com:NuSkooler/enigma-bbs into 0.0.7-alpha
This commit is contained in:
commit
b7ad850bdc
|
@ -293,9 +293,9 @@ function FTNMessageScanTossModule() {
|
||||||
async.detectSeries(EXT_SUFFIXES, (suffix, callback) => {
|
async.detectSeries(EXT_SUFFIXES, (suffix, callback) => {
|
||||||
const checkFileName = fileName + suffix;
|
const checkFileName = fileName + suffix;
|
||||||
fs.stat(paths.join(basePath, checkFileName), err => {
|
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) {
|
if(finalSuffix) {
|
||||||
cb(null, paths.join(basePath, fileName + finalSuffix));
|
cb(null, paths.join(basePath, fileName + finalSuffix));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue