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;
|
||||
}
|
||||
|
||||
let getEnvVarsAvailable = ():string[] => {
|
||||
let getEnvVarsAvailable = (requiredEnvVarsArg:string[]):string[] => {
|
||||
let result = [];
|
||||
for(let keyArg in requiredEnvVarsArg){
|
||||
let envVar = requiredEnvVarsArg[keyArg];
|
||||
if(process.env[envVar]){
|
||||
result.push(envVar);
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
Loading…
Reference in New Issue
Block a user