From b8baac1aad570031741b9aa1fe39495476b937f1 Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Tue, 23 May 2017 18:07:13 -0600
Subject: [PATCH] async.apply
---
src/meta/build.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/meta/build.js b/src/meta/build.js
index edb7d526ba..488d32e4fb 100644
--- a/src/meta/build.js
+++ b/src/meta/build.js
@@ -100,9 +100,7 @@ function beforeBuild(targets, callback) {
async.series([
db.init,
meta.themes.setupPaths,
- function (next) {
- plugins.prepareForBuild(targets, next);
- },
+ async.apply(plugins.prepareForBuild, targets),
], function (err) {
if (err) {
winston.error('[build] Encountered error preparing for build: ' + err.message);
@@ -182,7 +180,9 @@ function build(targets, callback) {
var startTime;
var totalTime;
async.series([
- async.apply(beforeBuild, targets),
+ function (next) {
+ beforeBuild(targets, next);
+ },
function (next) {
var threads = parseInt(nconf.get('threads'), 10);
if (threads) {