chore: Fixing linter warnings
This commit is contained in:
parent
fd4a8390aa
commit
d6019deb02
2 changed files with 2 additions and 3 deletions
|
@ -199,8 +199,7 @@ function scripts(pkg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enforce build order by generating the cibuild_stepX scrips
|
// Enforce build order by generating the cibuild_stepX scrips
|
||||||
let i = 0
|
for (let step=0; step < buildOrder.length; step++) {
|
||||||
for (const step in buildOrder) {
|
|
||||||
if (buildOrder[step].indexOf(pkg.name) !== -1) {
|
if (buildOrder[step].indexOf(pkg.name) !== -1) {
|
||||||
if (runScripts.build) runScripts[`cibuild_step${step}`] = runScripts.build
|
if (runScripts.build) runScripts[`cibuild_step${step}`] = runScripts.build
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ const loadTemplate = (type, format, language='en') => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const replace = (text, from, to) => {
|
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
|
return text
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue