From f8e7b6613f173069beda186bce01b843ad5b497d Mon Sep 17 00:00:00 2001 From: Elin Angelov Date: Fri, 18 Sep 2015 12:05:30 +0300 Subject: [PATCH] remove unneeded len assign why you assigning lent = ... to out when on next line you are slicing it and overwrite the out whit the sliced one --- cputils.js | 1 - 1 file changed, 1 deletion(-) diff --git a/cputils.js b/cputils.js index c232895..104be99 100644 --- a/cputils.js +++ b/cputils.js @@ -386,7 +386,6 @@ default: throw new Error("Unsupported magic: " + cp + " " + magic[cp]); } else throw new Error("Unrecognized CP: " + cp); - out.length = j; out = out.slice(0,j); if(typeof Buffer === 'undefined') return (ofmt == 'str') ? out.map(sfcc).join("") : out; if(ofmt === undefined || ofmt === 'buf') return out;