Skip to content

Commit

Permalink
FIX: allow explict "false" value on requireEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic-Marcelino committed Jun 17, 2024
1 parent bb7d022 commit 595650d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/HookUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class HookUtils {
throwError: false,
});

if (!env[name]) {
if (env[name] === undefined || env[name] === null) {
const errorMessage = this.getLoggerMessage(`Required env-variable '${name}' is missing`);
logger.error(errorMessage);

Expand Down

0 comments on commit 595650d

Please sign in to comment.