Skip to content

Commit

Permalink
Minor changes to make jshint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
s9tpepper committed Mar 31, 2015
1 parent 2cbc91e commit 0d43d4d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tasks/cucumber-js-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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]);
}
Expand Down

0 comments on commit 0d43d4d

Please sign in to comment.