From ad055582f7767d10e330ff0fffa4a1806b3efb29 Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Date: Thu, 9 May 2013 10:29:22 -0300 Subject: [PATCH] Pass succeeded as result of async task. --- tasks/cucumber-js-task.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/cucumber-js-task.js b/tasks/cucumber-js-task.js index aecf6ff..735fd57 100644 --- a/tasks/cucumber-js-task.js +++ b/tasks/cucumber-js-task.js @@ -16,9 +16,8 @@ module.exports = function (grunt) { grunt.verbose.writeflags(options, 'Options'); var callback = function(succeeded) { - var code = succeeded ? 0 : 1; var exitFunction = function() { - done(code); + done(succeeded); }; // --- exit after waiting for all pending output ---