1
0
Fork 0

chore: Fixing linter warnings

This commit is contained in:
Joost De Cock 2022-07-12 21:23:14 +02:00
parent fd4a8390aa
commit d6019deb02
2 changed files with 2 additions and 3 deletions

View file

@ -199,8 +199,7 @@ function scripts(pkg) {
}
// Enforce build order by generating the cibuild_stepX scrips
let i = 0
for (const step in buildOrder) {
for (let step=0; step < buildOrder.length; step++) {
if (buildOrder[step].indexOf(pkg.name) !== -1) {
if (runScripts.build) runScripts[`cibuild_step${step}`] = runScripts.build
}

View file

@ -22,7 +22,7 @@ const loadTemplate = (type, format, language='en') => {
}
const replace = (text, from, to) => {
for (const id in from) text = text.split(from[id]).join(to[id] || from[id])
for (let id=0; id < from.length; id++) text = text.split(from[id]).join(to[id] || from[id])
return text
}