Skip to content

Commit dde8fd3

Browse files
nadinTsTrott
authored andcommitted
fs: change var to let
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]>
1 parent 9a4b16f commit dde8fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@ if (isWindows) {
14241424
};
14251425
} else {
14261426
splitRoot = function splitRoot(str) {
1427-
for (var i = 0; i < str.length; ++i) {
1427+
for (let i = 0; i < str.length; ++i) {
14281428
if (str.charCodeAt(i) !== CHAR_FORWARD_SLASH)
14291429
return str.slice(0, i);
14301430
}

0 commit comments

Comments
 (0)