diff --git a/src/core/lib/Stream.mjs b/src/core/lib/Stream.mjs index 451698b9..da299b65 100644 --- a/src/core/lib/Stream.mjs +++ b/src/core/lib/Stream.mjs @@ -213,8 +213,8 @@ export default class Stream { * @param {Number} val */ consumeWhile(val) { - while (this.position < this.length){ - if (this.bytes[this.position] !== val){ + while (this.position < this.length) { + if (this.bytes[this.position] !== val) { break; } this.position++;