Skip to content

Commit 1f9abbe

Browse files
committed
remove unnecessary check
1 parent 6bbb59f commit 1f9abbe

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/buffer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,6 @@ ObjectDefineProperty(Buffer.prototype, 'offset', {
786786
});
787787

788788
Buffer.prototype.copy = function copy(target, targetStart, sourceStart, sourceEnd) {
789-
if (!ArrayBufferIsView(this))
790-
throw new ERR_INVALID_ARG_TYPE('source', ['Buffer', 'Uint8Array'], this);
791789
if (!ArrayBufferIsView(target))
792790
throw new ERR_INVALID_ARG_TYPE('target', ['Buffer', 'Uint8Array'], target);
793791

0 commit comments

Comments
 (0)