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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
mkdorff authored and MylesBorins committed Dec 17, 2019
1 parent b49e63d commit 45e9c31
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 45e9c31

Please sign in to comment.