Skip to content

Commit ce5f8c4

Browse files
committed
buffer: remove unused param from copyActual
1 parent 27261b9 commit ce5f8c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/buffer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function copyImpl(source, target, targetStart, sourceStart, sourceEnd) {
268268
return _copyActual(source, target, targetStart, sourceStart, sourceEnd);
269269
}
270270

271-
function _copyActual(source, target, targetStart, sourceStart, sourceEnd, isUint8Copy = false) {
271+
function _copyActual(source, target, targetStart, sourceStart, sourceEnd) {
272272
if (sourceEnd - sourceStart > target.byteLength - targetStart)
273273
sourceEnd = sourceStart + target.byteLength - targetStart;
274274

@@ -280,7 +280,7 @@ function _copyActual(source, target, targetStart, sourceStart, sourceEnd, isUint
280280
if (nb <= 0)
281281
return 0;
282282

283-
if (sourceStart === 0 && nb === sourceLen && (isUint8Copy || isUint8Array(target))) {
283+
if (sourceStart === 0 && nb === sourceLen && isUint8Array(target)) {
284284
TypedArrayPrototypeSet(target, source, targetStart);
285285
} else {
286286
_copy(source, target, targetStart, sourceStart, nb);

0 commit comments

Comments
 (0)