commit 9168ac0f485e6cd88ac62875a27a8f6941dfdd52 parent 69b1eab308c35633d5e741630d42ff188aa063a5 Author: Sergej Orlov <wladimirych@gmail.com> Date: Wed, 5 Feb 2025 15:39:52 +0100 binary-setram: fix linter issues Diffstat:
M | src/lib/binary-stream/index.js | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/lib/binary-stream/index.js b/src/lib/binary-stream/index.js @@ -11,10 +11,10 @@ class BinStream { grow() { this.maxSize *= 2; - const old_buffer = this.dv.buffer; + const oldBuffer = this.dv.buffer; this.dv = new DataView(new ArrayBuffer(this.maxSize)); const newAr = new Uint8Array(this.dv.buffer); - const oldAr = new Uint8Array(old_buffer); + const oldAr = new Uint8Array(oldBuffer); for (let i = 0; i < oldAr.length; i++) { newAr[i] = oldAr[i]; } @@ -25,7 +25,7 @@ class BinStream { this.grow(); } const newPos = this._pos + size; - this.size = (newPos > this.size) ? newPos : this.size; + this.size = newPos > this.size ? newPos : this.size; } writeUint8(value) {