use for...of _.keys
instead of for...in
This commit is contained in:
parent
8959b0993e
commit
ec41e314b0
@ -209,11 +209,7 @@ export class Compiler {
|
|||||||
versionToInputs[solcVersion].contractsToCompile.push(contractSource.path);
|
versionToInputs[solcVersion].contractsToCompile.push(contractSource.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const solcVersion in versionToInputs) {
|
for (const solcVersion of _.keys(versionToInputs)) {
|
||||||
if (!versionToInputs.hasOwnProperty(solcVersion)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
const input = versionToInputs[solcVersion];
|
const input = versionToInputs[solcVersion];
|
||||||
logUtils.log(
|
logUtils.log(
|
||||||
`Compiling ${input.contractsToCompile.length} contracts (${
|
`Compiling ${input.contractsToCompile.length} contracts (${
|
||||||
|
Loading…
x
Reference in New Issue
Block a user