Skip to content

Commit c5b86f8

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 bc2111c commit c5b86f8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/buffer.js

-3
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,7 @@ function _copyActual(source, target, targetStart, sourceStart, sourceEnd) {
252252
sourceEnd = sourceStart + target.length - targetStart;
253253

254254
let nb = sourceEnd - sourceStart;
255-
const targetLen = target.length - targetStart;
256255
const sourceLen = source.length - sourceStart;
257-
if (nb > targetLen)
258-
nb = targetLen;
259256
if (nb > sourceLen)
260257
nb = sourceLen;
261258

0 commit comments

Comments
 (0)