Skip to content

Commit

Permalink
prevent the jshintrc option from wiping out the force option
Browse files Browse the repository at this point in the history
  • Loading branch information
ekashida committed Apr 8, 2013
1 parent fc7938f commit 32995b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ module.exports = function(grunt) {
force: false
});

// Report JSHint errors but dont fail the task
var force = options.force;
delete options.force;

// Read JSHint options from a specified jshintrc file.
if (options.jshintrc) {
options = grunt.file.readJSON(options.jshintrc);
Expand All @@ -41,10 +45,6 @@ module.exports = function(grunt) {
var globals = options.globals;
delete options.globals;

// Report JSHint errors but dont fail the task
var force = options.force;
delete options.force;

grunt.verbose.writeflags(options, 'JSHint options');
grunt.verbose.writeflags(globals, 'JSHint globals');

Expand Down

0 comments on commit 32995b0

Please sign in to comment.