more structure
This commit is contained in:
parent
8b715c52ac
commit
575671d8c9
10
ts/index.ts
10
ts/index.ts
@ -20,7 +20,15 @@ let getEnvVarsRequired = (pathArg:string):string[] => {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
let getEnvVarsAvailable = ():string[] => {
|
let getEnvVarsAvailable = (requiredEnvVarsArg:string[]):string[] => {
|
||||||
let result = [];
|
let result = [];
|
||||||
|
for(let keyArg in requiredEnvVarsArg){
|
||||||
|
let envVar = requiredEnvVarsArg[keyArg];
|
||||||
|
if(process.env[envVar]){
|
||||||
|
result.push(envVar);
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user