From e4495798ee30330626e998536d114f84b0e18587 Mon Sep 17 00:00:00 2001 From: nai-degen <44111-khanon@users.noreply.gitgud.io> Date: Sat, 15 Apr 2023 00:44:52 -0700 Subject: [PATCH] omits undefined values from listConfig --- src/config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config.ts b/src/config.ts index 4c6cc69..49e48ba 100644 --- a/src/config.ts +++ b/src/config.ts @@ -72,6 +72,11 @@ export function listConfig(): Record { const result: Record = {}; for (const key of getKeys(config)) { const value = config[key]?.toString() || ""; + + if (value === "" || value === "undefined") { + continue; + } + if (value && SENSITIVE_KEYS.includes(key)) { result[key] = "********"; } else {