Set default value properly
This commit is contained in:
parent
e22278d9db
commit
61e589112a
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ export async function getManifest(manifest) {
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function assertEnvKey(key, { checkTruthiness = true }) {
|
export function assertEnvKey(key, { checkTruthiness = true } = {}) {
|
||||||
if (!(key in process.env)) {
|
if (!(key in process.env)) {
|
||||||
console.error(`Must provide a ${key} environment variable`);
|
console.error(`Must provide a ${key} environment variable`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue