From 16c25d4eccbf5f87349f36731c28b91db099b72e Mon Sep 17 00:00:00 2001 From: mkdorff Date: Tue, 12 Nov 2019 15:17:43 +0000 Subject: [PATCH] lib: change var to let in string_decoder --- lib/string_decoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/string_decoder.js b/lib/string_decoder.js index fec30beb0a15d4..7df50eb0178377 100644 --- a/lib/string_decoder.js +++ b/lib/string_decoder.js @@ -57,7 +57,7 @@ function normalizeEncoding(enc) { } const encodingsMap = {}; -for (var i = 0; i < encodings.length; ++i) +for (let i = 0; i < encodings.length; ++i) encodingsMap[encodings[i]] = i; // StringDecoder provides an interface for efficiently splitting a series of