Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Dec 23, 2023
1 parent 368e22b commit 8ec5cc7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libs/resizer/resizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ export class Resizer {
throw new Error(`Maximum size exceeded`)

if (length > this.inner.length) {
console.debug("Resizing", length, this.inner.length)
const resized = new Cursor(new Uint8Array(length))
resized.writeOrThrow(this.inner.inner)
resized.writeOrThrow(this.inner.before)
this.inner = resized
}

Expand All @@ -36,7 +35,7 @@ export class Resizer {

if (length > this.inner.length) {
const resized = new Cursor(new Uint8Array(length))
resized.writeOrThrow(this.inner.inner)
resized.writeOrThrow(this.inner.before)
this.inner = resized
}

Expand Down

0 comments on commit 8ec5cc7

Please sign in to comment.