Skip to content
Permalink
Browse files

lib: main_thread_only change var to let

PR-URL: #30398
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
matijagaspar authored and MylesBorins committed Nov 12, 2019
1 parent dc786c3 commit c4fcd5b4ca8e816cafc842ce7d823f4c01c5d03b
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/internal/process/main_thread_only.js
@@ -76,7 +76,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

0 comments on commit c4fcd5b

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