From e4740961199ee6b34ad32dd242e0081afbb41a69 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 12 Mar 2018 12:53:51 +0100 Subject: Fix a typo in handling env variables --- packages/dev-utils/src/env.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') 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( -- cgit