Skip to content
Permalink
Browse files

fs: change var to let

PR-URL: #30318
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
nadinTs authored and MylesBorins committed Nov 6, 2019
1 parent eceeed7 commit d7c2911f8db099d682e2d0fda5134fbb49f3245b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fs.js
@@ -1408,7 +1408,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);
}

0 comments on commit d7c2911

Please sign in to comment.
You can’t perform that action at this time.