From 0d43d4d7136148255ba731a1e6f5498e2f122695 Mon Sep 17 00:00:00 2001 From: Omar Gonzalez Date: Tue, 31 Mar 2015 09:11:14 -0700 Subject: [PATCH] Minor changes to make jshint happy --- tasks/cucumber-js-task.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tasks/cucumber-js-task.js b/tasks/cucumber-js-task.js index 8f42b45..6c5d905 100644 --- a/tasks/cucumber-js-task.js +++ b/tasks/cucumber-js-task.js @@ -48,14 +48,15 @@ module.exports = function (grunt) { execOptions = execOptions.concat(files); } - if (! _.isEmpty(steps)) { - function addStep(step) { - execOptions.push('-r'); - execOptions.push(step); - } + function addStep(step) { + execOptions.push('-r'); + execOptions.push(step); + } + var i; + if (! _.isEmpty(steps)) { if (_.isArray(steps)) { - for (var i=0; i < steps.length; i++) { + for (i=0; i < steps.length; i++) { addStep(steps[i]); } } else { @@ -67,7 +68,7 @@ module.exports = function (grunt) { if (typeof tags === "string") { tags = [tags]; } - for (var i=0; i < tags.length; i++) { + for (i=0; i < tags.length; i++) { execOptions.push('-t'); execOptions.push(tags[i]); }