diff options
author | XhmikosR <xhmikosr@gmail.com> | 2017-02-20 00:10:59 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2017-02-20 00:10:59 +0300 |
commit | ea0c47211f38a66aa73088646ea6324f1f9b174c (patch) | |
tree | 8affe768177135ae90f5de0d80bac5783f04e455 | |
parent | 8ff8c8531978e33a0e4d7306a12928483acca80c (diff) |
Remove unneeded parentheses.
-rw-r--r-- | tasks/bootlint.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks/bootlint.js b/tasks/bootlint.js index ae014d9..f3af6b4 100644 --- a/tasks/bootlint.js +++ b/tasks/bootlint.js @@ -71,8 +71,8 @@ module.exports = function(grunt) { var src = grunt.file.read(filepath); var reporter = function (lint) { - var isError = (lint.id[0] === 'E'); - var isWarning = (lint.id[0] === 'W'); + var isError = lint.id[0] === 'E'; + var isWarning = lint.id[0] === 'W'; var lintId = isError ? chalk.bgGreen.white(lint.id) : chalk.bgRed.white(lint.id); var output = false; @@ -92,7 +92,7 @@ module.exports = function(grunt) { } if (!options.showallerrors) { - if ((isError && options.stoponerror) || (isWarning && options.stoponwarning)) { + if (isError && options.stoponerror || isWarning && options.stoponwarning) { grunt.fail.warn('Too many bootlint errors.'); } } |