Skip to content

Commit

Permalink
Fixed warnings not being logged to console
Browse files Browse the repository at this point in the history
Warnings were not being logged unless there was an error in the css linting.

Fixes #23
  • Loading branch information
iblack10 authored Aug 12, 2016
1 parent 9328ddc commit 0f1cc66
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/run-compilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module.exports = function runCompilation(options, compilation, done) {

linter(options)
.then(function (lint) {
if (lint.errored) {
errors = lint.results
.filter(function (f) {
return f.errored;
Expand All @@ -27,7 +26,6 @@ module.exports = function runCompilation(options, compilation, done) {
if (!options.quiet) {
console.log(chalk.yellow(options.formatter(lint.results)));
}
}

if (options.failOnError && errors.length) {
done(new Error('Failed because of a stylelint error.\n'));
Expand Down

0 comments on commit 0f1cc66

Please sign in to comment.