We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b38300 + 9ca2233 commit ad8b630Copy full SHA for ad8b630
index.js
@@ -65,9 +65,7 @@ module.exports = function (options) {
65
var warningsOrErrors = [].concat(this.cache.errs, this.cache.warnings);
66
67
if (warningsOrErrors.length) {
68
- var msg = warningsOrErrors.filter(function (str) {
69
- return !!str;
70
- }).join('\n\n');
+ var msg = warningsOrErrors.filter(Boolean).join('\n\n');
71
msg += '\n' + this.cache.msg;
72
file.stylint = {msg: msg, errors: this.cache.errs.length > 0, warnings: this.cache.warnings.length > 0};
73
}
0 commit comments