Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
g00dnatur3 committed Sep 11, 2020
1 parent 6039dbc commit ffc9b82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/childProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ module.exports = class ChildProcess {
const lines = text.split("\n");
const buff = [];
const startsWithTerms = ["Running:", " ✔", "OK."];
const maxLineLength = 512;
const processLine = (line) => {
for (const term of startsWithTerms) {
// line could have an ERROR or WARN tag that is whitelisted we want to keep
if (self.isTextWhiteListed(line) || line.startsWith(term)) {
// limit the length of each line, goal here is to "limit" verbosity
buff.push(line.substring(0, 512));
buff.push(line.substring(0, maxLineLength));
}
}
};
Expand Down

0 comments on commit ffc9b82

Please sign in to comment.