Skip to content

Commit

Permalink
Remove unnecessary .buffer call in node.js BufferUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
VeskeR committed Apr 30, 2024
1 parent 1891f0e commit 7745d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/nodejs/lib/util/bufferutils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class BufferUtils implements IBufferUtils<Bufferlike, Output, ToBufferOutput> {
}

arrayBufferViewToBuffer(arrayBufferView: ArrayBufferView): Buffer {
return this.toBuffer(arrayBufferView.buffer);
return this.toBuffer(arrayBufferView);
}

utf8Decode(buffer: Bufferlike): string {
Expand Down

0 comments on commit 7745d0f

Please sign in to comment.