From e0ca63e56f554d1feaff8df8b9723f5cedfd8717 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sun, 16 Aug 2015 01:52:25 +1000 Subject: [PATCH] inline i declarations --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index c47a92d..b628935 100644 --- a/index.js +++ b/index.js @@ -624,10 +624,9 @@ function base64Slice (buf, start, end) { function decodeLargeCodePointsArray (array) { var res = '' - var i var end = array.length - for (i = 0; i < end; i++) { + for (var i = 0; i < end; i++) { res += String.fromCharCode(array[i]) } @@ -654,9 +653,8 @@ function utf8Slice (buf, start, end) { var tempCodePoint var codePoint var res = [] - var i = start - for (; i < end; i += bytesPerSequence) { + for (var i = start; i < end; i += bytesPerSequence) { firstByte = buf[i] codePoint = 0xFFFD -- 2.34.1