From ffc9b827973842a2be2567ea9b6b3bff1891a837 Mon Sep 17 00:00:00 2001 From: John Bouchard Date: Thu, 10 Sep 2020 17:12:50 -0700 Subject: [PATCH] lint-fix --- src/util/childProcess.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/childProcess.js b/src/util/childProcess.js index 862ab36..e0731cb 100644 --- a/src/util/childProcess.js +++ b/src/util/childProcess.js @@ -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)); } } };