diff --git a/lib/executor.js b/lib/executor.js index a555bd3..70ec590 100755 --- a/lib/executor.js +++ b/lib/executor.js @@ -31,6 +31,9 @@ function Executor () { }; newArguments[newArguments.length - 1] = callback; + } else if (!lastArg && task.arguments.length) { + callback = function () { cb(); }; + newArguments[newArguments.length - 1] = callback; } else { callback = function () { cb(); }; newArguments.push(callback);