Commit f8cbe113 authored by Philipp Nowinski's avatar Philipp Nowinski

[BUGFIX] send notification only once per run

parent 4242230a
......@@ -97,6 +97,12 @@ module.exports = class Css extends Task {
qaSteps.push(this._qa(file));
});
await Promise.all(qaSteps);
if (this._printedError) {
this._logger.displayNotification(
'SGC css:qa task',
'You have some linting-errors in your CSS. Please fix them!'
);
}
resolve();
});
}
......@@ -238,12 +244,6 @@ module.exports = class Css extends Task {
from: _input,
syntax: scss
}).then(() => {
if (this._printedError) {
this._logger.displayNotification(
'SGC css:qa task',
'You have some linting-errors in your CSS. Please fix them!'
);
}
resolve();
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment