mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-09 22:24:35 +02:00
* Code cleanup and eslint since -- remove unused variables, clean up RegExs, so on...
This commit is contained in:
parent
a106050ba3
commit
ac1433e84b
112 changed files with 1375 additions and 1898 deletions
|
@ -38,17 +38,17 @@ function startup(cb) {
|
|||
|
||||
function shutdown(cb) {
|
||||
async.each(
|
||||
msgNetworkModules,
|
||||
msgNetworkModules,
|
||||
(msgNetModule, next) => {
|
||||
msgNetModule.shutdown( () => {
|
||||
return next();
|
||||
});
|
||||
},
|
||||
},
|
||||
() => {
|
||||
msgNetworkModules = [];
|
||||
return cb(null);
|
||||
}
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
function recordMessage(message, cb) {
|
||||
|
@ -59,7 +59,7 @@ function recordMessage(message, cb) {
|
|||
//
|
||||
async.each(msgNetworkModules, (modInst, next) => {
|
||||
modInst.record(message);
|
||||
next();
|
||||
next();
|
||||
}, err => {
|
||||
cb(err);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue