Skip to content

Commit

Permalink
Fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
iblack10 authored Aug 12, 2016
1 parent 0f1cc66 commit c0c36d2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/run-compilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ module.exports = function runCompilation(options, compilation, done) {

linter(options)
.then(function (lint) {
errors = lint.results
.filter(function (f) {
return f.errored;
})
.map(function (f) {
return f.source; // send error instead
});
errors = lint.results
.filter(function (f) {
return f.errored;
})
.map(function (f) {
return f.source; // send error instead
});

if (!options.quiet) {
console.log(chalk.yellow(options.formatter(lint.results)));
}
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 c0c36d2

Please sign in to comment.