Fix a typo in handling env variables
This commit is contained in:
parent
075f286130
commit
e474096119
@ -4,10 +4,10 @@ import * as process from 'process';
|
|||||||
export const env = {
|
export const env = {
|
||||||
parseBoolean(key: string): boolean {
|
parseBoolean(key: string): boolean {
|
||||||
let isTrue: boolean;
|
let isTrue: boolean;
|
||||||
const envVarvalue = process.env[key];
|
const envVarValue = process.env[key];
|
||||||
if (process.env.SOLIDITY_COVERAGE === 'true') {
|
if (envVarValue === 'true') {
|
||||||
isTrue = true;
|
isTrue = true;
|
||||||
} else if (process.env.SOLIDITY_COVERAGE === 'false' || _.isUndefined(process.env.SOLIDITY_COVERAGE)) {
|
} else if (envVarValue === 'false' || _.isUndefined(envVarValue)) {
|
||||||
isTrue = false;
|
isTrue = false;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user