Skip to content

Commit

Permalink
Merge pull request #18 from maxwellterry/patch-1
Browse files Browse the repository at this point in the history
Still complete when reportpath is false
  • Loading branch information
praveenvijayan committed Dec 14, 2013
2 parents cd279b2 + 98575bd commit 7927bf9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tasks/html_validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,11 @@ module.exports = function(grunt) {
// depending on the output type, res will either be a json object or a html string
counter++;

if (options.reportpath && counter === flen) {
grunt.file.write(options.reportpath, JSON.stringify(reportArry));
console.log("Validation report generated: ".green + options.reportpath);
if (counter === flen) {
if (options.reportpath) {
grunt.file.write(options.reportpath, JSON.stringify(reportArry));
console.log("Validation report generated: ".green + options.reportpath);
}
done();
}

Expand Down Expand Up @@ -298,4 +300,4 @@ module.exports = function(grunt) {

});

};
};

0 comments on commit 7927bf9

Please sign in to comment.