From 7e64fe7a48472b7de7692cab382f3b35ea402801 Mon Sep 17 00:00:00 2001 From: matijagaspar Date: Tue, 12 Nov 2019 16:11:16 +0100 Subject: [PATCH] lib: main_thread_only change var to let --- lib/internal/process/main_thread_only.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/process/main_thread_only.js b/lib/internal/process/main_thread_only.js index 0cb3edbf9ad7b4..a610395be99cbf 100644 --- a/lib/internal/process/main_thread_only.js +++ b/lib/internal/process/main_thread_only.js @@ -77,7 +77,7 @@ function wrapPosixCredentialSetters(credentials) { if (!Array.isArray(groups)) { throw new ERR_INVALID_ARG_TYPE('groups', 'Array', groups); } - for (var i = 0; i < groups.length; i++) { + for (let i = 0; i < groups.length; i++) { validateId(groups[i], `groups[${i}]`); } // Result is 0 on success. A positive integer indicates that the