Skip to content

Commit 48b557e

Browse files
pd4d10targos
authored andcommitted
buffer: remove unreachable code
PR-URL: #38537 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ec2dbfb commit 48b557e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/buffer.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,7 @@ function _copyActual(source, target, targetStart, sourceStart, sourceEnd) {
242242
sourceEnd = sourceStart + target.length - targetStart;
243243

244244
let nb = sourceEnd - sourceStart;
245-
const targetLen = target.length - targetStart;
246245
const sourceLen = source.length - sourceStart;
247-
if (nb > targetLen)
248-
nb = targetLen;
249246
if (nb > sourceLen)
250247
nb = sourceLen;
251248

0 commit comments

Comments
 (0)