Skip to content

Commit 5031960

Browse files
committed
chore: scope variables for no-undef
1 parent 6237e9f commit 5031960

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stackbrew.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const slimRE = new RegExp(/\*-slim/);
3333
let foundLTS = false;
3434
let foundCurrent = false;
3535

36-
for (version of versions) {
36+
for (const version of versions) {
3737
let lts = new Date(`${config[version].lts}T00:00:00.00`).getTime();
3838
let maintenance = new Date(`${config[version].maintenance}T00:00:00.00`).getTime();
3939
let isCurrent = foundCurrent ? false : isNaN(lts) || lts >= now;
@@ -45,7 +45,7 @@ for (version of versions) {
4545
let defaultDebian = config[version]['debian-default']
4646
let variants = config[version].variants
4747
let fullversion;
48-
for (variant in variants) {
48+
for (const variant in variants) {
4949
let dockerfilePath = path.join(version, variant, 'Dockerfile');
5050
let isAlpine = aplineRE.test(variant)
5151
let isSlim = slimRE.test(variant)

0 commit comments

Comments
 (0)