Skip to content

Commit

Permalink
fs: change var to let
Browse files Browse the repository at this point in the history
PR-URL: nodejs#30318
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
nadinTs authored and Trott committed Nov 8, 2019
1 parent 9a4b16f commit dde8fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ if (isWindows) {
};
} else {
splitRoot = function splitRoot(str) {
for (var i = 0; i < str.length; ++i) {
for (let i = 0; i < str.length; ++i) {
if (str.charCodeAt(i) !== CHAR_FORWARD_SLASH)
return str.slice(0, i);
}
Expand Down

0 comments on commit dde8fd3

Please sign in to comment.