mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fix eslint
This commit is contained in:
@@ -100,7 +100,7 @@ var middleware;
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
async.apply(Plugins.getPluginPaths),
|
async.apply(Plugins.getPluginPaths),
|
||||||
function(paths, next) {
|
function (paths, next) {
|
||||||
async.eachSeries(paths, Plugins.loadPlugin, next);
|
async.eachSeries(paths, Plugins.loadPlugin, next);
|
||||||
},
|
},
|
||||||
function (next) {
|
function (next) {
|
||||||
|
|||||||
@@ -41,14 +41,13 @@ module.exports = function (Plugins) {
|
|||||||
Plugins.prepareForBuild = function (callback) {
|
Plugins.prepareForBuild = function (callback) {
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
async.apply(Plugins.getPluginPaths),
|
async.apply(Plugins.getPluginPaths),
|
||||||
function(paths, next) {
|
function (paths, next) {
|
||||||
async.map(paths, function(path, next) {
|
async.map(paths, function (path, next) {
|
||||||
Plugins.loadPluginInfo(path, next);
|
Plugins.loadPluginInfo(path, next);
|
||||||
}, next);
|
}, next);
|
||||||
},
|
},
|
||||||
function(plugins, next) {
|
function (plugins, next) {
|
||||||
async.each(plugins, function(pluginData, next) {
|
async.each(plugins, function (pluginData, next) {
|
||||||
var idx = plugins.indexOf(pluginData);
|
|
||||||
async.parallel([
|
async.parallel([
|
||||||
async.apply(mapFiles, pluginData, 'css', 'cssFiles'),
|
async.apply(mapFiles, pluginData, 'css', 'cssFiles'),
|
||||||
async.apply(mapFiles, pluginData, 'less', 'lessFiles'),
|
async.apply(mapFiles, pluginData, 'less', 'lessFiles'),
|
||||||
|
|||||||
Reference in New Issue
Block a user