aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src/compiler.ts
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-08-16 04:39:33 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-08-16 04:39:33 +0800
commitec41e314b09ed348e1d268b1d896dbde275deb1b (patch)
tree147fb3a93f78c177c0fc7e34f9a6614abd12d56f /packages/sol-compiler/src/compiler.ts
parent8959b0993e92d86fdf8539d11d4e4c70185eb8ed (diff)
downloaddexon-sol-tools-ec41e314b09ed348e1d268b1d896dbde275deb1b.tar
dexon-sol-tools-ec41e314b09ed348e1d268b1d896dbde275deb1b.tar.gz
dexon-sol-tools-ec41e314b09ed348e1d268b1d896dbde275deb1b.tar.bz2
dexon-sol-tools-ec41e314b09ed348e1d268b1d896dbde275deb1b.tar.lz
dexon-sol-tools-ec41e314b09ed348e1d268b1d896dbde275deb1b.tar.xz
dexon-sol-tools-ec41e314b09ed348e1d268b1d896dbde275deb1b.tar.zst
dexon-sol-tools-ec41e314b09ed348e1d268b1d896dbde275deb1b.zip
use `for...of _.keys` instead of `for...in`
Diffstat (limited to 'packages/sol-compiler/src/compiler.ts')
-rw-r--r--packages/sol-compiler/src/compiler.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts
index 9a6dcff09..a676423cb 100644
--- a/packages/sol-compiler/src/compiler.ts
+++ b/packages/sol-compiler/src/compiler.ts
@@ -209,11 +209,7 @@ export class Compiler {
versionToInputs[solcVersion].contractsToCompile.push(contractSource.path);
}
- for (const solcVersion in versionToInputs) {
- if (!versionToInputs.hasOwnProperty(solcVersion)) {
- continue;
- }
-
+ for (const solcVersion of _.keys(versionToInputs)) {
const input = versionToInputs[solcVersion];
logUtils.log(
`Compiling ${input.contractsToCompile.length} contracts (${