Skip to content

Commit 49e79cc

Browse files
thisalihassanaduh95
andcommitted
Update lib/buffer.js
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 2cdc20a commit 49e79cc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/buffer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,9 @@ Buffer.copyBytesFrom = function copyBytesFrom(view, offset, length) {
378378
}
379379

380380
const viewLength = TypedArrayPrototypeGetLength(view);
381-
if (viewLength === 0) return new FastBuffer();
381+
if (viewLength === 0) {
382+
return new FastBuffer();
383+
}
382384

383385
let start = 0;
384386
let end = viewLength;

0 commit comments

Comments
 (0)