Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/grunt-bootlint.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2017-02-20 00:10:59 +0300
committerXhmikosR <xhmikosr@gmail.com>2017-02-20 00:10:59 +0300
commitea0c47211f38a66aa73088646ea6324f1f9b174c (patch)
tree8affe768177135ae90f5de0d80bac5783f04e455 /tasks
parent8ff8c8531978e33a0e4d7306a12928483acca80c (diff)
Remove unneeded parentheses.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/bootlint.js6
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.');
}
}