Skip to content

Commit

Permalink
lib: change var to let in string_decoder
Browse files Browse the repository at this point in the history
PR-URL: #30393
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
mkdorff authored and targos committed Dec 1, 2019
1 parent b685d7d commit 47fa164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/string_decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47fa164

Please sign in to comment.