mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
remove unnecessary code
This commit is contained in:
@@ -108,7 +108,7 @@ function initializeNodeBB(callback) {
|
|||||||
var middleware = require('./middleware');
|
var middleware = require('./middleware');
|
||||||
|
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
async.apply(meta.themes.setupPaths),
|
meta.themes.setupPaths,
|
||||||
function (next) {
|
function (next) {
|
||||||
plugins.init(app, middleware, next);
|
plugins.init(app, middleware, next);
|
||||||
},
|
},
|
||||||
@@ -125,13 +125,9 @@ function initializeNodeBB(callback) {
|
|||||||
function (hotswapIds, next) {
|
function (hotswapIds, next) {
|
||||||
routes(app, middleware, hotswapIds, next);
|
routes(app, middleware, hotswapIds, next);
|
||||||
},
|
},
|
||||||
function (next) {
|
meta.sounds.addUploads,
|
||||||
async.series([
|
meta.blacklist.load,
|
||||||
meta.sounds.addUploads,
|
flags.init,
|
||||||
meta.blacklist.load,
|
|
||||||
flags.init,
|
|
||||||
], next);
|
|
||||||
},
|
|
||||||
], function (err) {
|
], function (err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user