Fix various linter errors
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ class LogStream extends TransformStream {
|
||||
|
||||
_transform(chunk, encoding, callback) {
|
||||
const data = this._soFar + this._decoder.write(chunk);
|
||||
let start = this._soFar.length, end = -1;
|
||||
let start = this._soFar.length, end;
|
||||
while ((end = data.indexOf('\n', start)) !== -1) {
|
||||
const line = data.slice(start, end); // does not include end
|
||||
this.push(this._format(line));
|
||||
|
||||
Reference in New Issue
Block a user