From 47fa16497a1724524eddd54e06b7849f23bfa22e 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 PR-URL: https://github.com/nodejs/node/pull/30393 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: David Carlier Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- 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