aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 19:53:51 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 19:53:51 +0800
commite4740961199ee6b34ad32dd242e0081afbb41a69 (patch)
tree46dc6e99bcd9745b07d172546cca2296acbd5603 /packages
parent075f286130742351edc6f6609d9d4738a3b53f61 (diff)
downloaddexon-sol-tools-e4740961199ee6b34ad32dd242e0081afbb41a69.tar.gz
dexon-sol-tools-e4740961199ee6b34ad32dd242e0081afbb41a69.tar.zst
dexon-sol-tools-e4740961199ee6b34ad32dd242e0081afbb41a69.zip
Fix a typo in handling env variables
Diffstat (limited to 'packages')
-rw-r--r--packages/dev-utils/src/env.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/dev-utils/src/env.ts b/packages/dev-utils/src/env.ts
index 7e46a5f89..6f8b1c5f8 100644
--- a/packages/dev-utils/src/env.ts
+++ b/packages/dev-utils/src/env.ts
@@ -4,10 +4,10 @@ import * as process from 'process';
export const env = {
parseBoolean(key: string): boolean {
let isTrue: boolean;
- const envVarvalue = process.env[key];
- if (process.env.SOLIDITY_COVERAGE === 'true') {
+ const envVarValue = process.env[key];
+ if (envVarValue === 'true') {
isTrue = true;
- } else if (process.env.SOLIDITY_COVERAGE === 'false' || _.isUndefined(process.env.SOLIDITY_COVERAGE)) {
+ } else if (envVarValue === 'false' || _.isUndefined(envVarValue)) {
isTrue = false;
} else {
throw new Error(