Commit f8cbe113 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[BUGFIX] send notification only once per run

parent 4242230a
...@@ -97,6 +97,12 @@ module.exports = class Css extends Task { ...@@ -97,6 +97,12 @@ module.exports = class Css extends Task {
qaSteps.push(this._qa(file)); qaSteps.push(this._qa(file));
}); });
await Promise.all(qaSteps); 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(); resolve();
}); });
} }
...@@ -238,12 +244,6 @@ module.exports = class Css extends Task { ...@@ -238,12 +244,6 @@ module.exports = class Css extends Task {
from: _input, from: _input,
syntax: scss syntax: scss
}).then(() => { }).then(() => {
if (this._printedError) {
this._logger.displayNotification(
'SGC css:qa task',
'You have some linting-errors in your CSS. Please fix them!'
);
}
resolve(); 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