diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -54,7 +54,7 @@ module.exports.reporter = reporterType => {
       })
     }
 
-    if (reporterType === 'fail' && foundIssues) {
+    if (isFailReporter && foundIssues) {
       failedFiles.push(file.path)
     }
refactor(src): use isFailReporter var