Skip to content

Commit c01a7fb

Browse files
nadinTstargos
authored andcommitted
fs: change var to let
PR-URL: #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 52604fd commit c01a7fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ if (isWindows) {
14081408
};
14091409
} else {
14101410
splitRoot = function splitRoot(str) {
1411-
for (var i = 0; i < str.length; ++i) {
1411+
for (let i = 0; i < str.length; ++i) {
14121412
if (str.charCodeAt(i) !== CHAR_FORWARD_SLASH)
14131413
return str.slice(0, i);
14141414
}

0 commit comments

Comments
 (0)