diff --git a/tasks/jsinspect.js b/tasks/jsinspect.js
index <HASH>..<HASH> 100644
--- a/tasks/jsinspect.js
+++ b/tasks/jsinspect.js
@@ -54,7 +54,7 @@ module.exports = function(grunt) {
           taskSucceeded = false;
         }
       });
-    } else if (options.failOnMatch) {
+    } else if (options.failOnMatch === true) {
       // Handle failOnMatch boolean
       inspector.on('match', function() {
         taskSucceeded = false;
Ensure second branch is a Boolean