From 874ecee00a6972902ad4d8d421c460e9d4b5b814 Mon Sep 17 00:00:00 2001 From: Nadya Date: Wed, 6 Nov 2019 18:30:30 +0300 Subject: [PATCH] fs: change var to let --- lib/fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs.js b/lib/fs.js index 1b3df1119f3aa5..2944a44a317f76 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -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); }