mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-24 19:48:23 +02:00
Fixes thtrue in #115
This commit is contained in:
parent
d92b8e6e2c
commit
bb76939745
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue