We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b8f2c9 commit 3cd87deCopy full SHA for 3cd87de
src/internal/utils/env.ts
@@ -9,10 +9,10 @@
9
*/
10
export const readEnv = (env: string): string | undefined => {
11
if (typeof (globalThis as any).process !== 'undefined') {
12
- return (globalThis as any).process.env?.[env]?.trim() ?? undefined;
+ return (globalThis as any).process.env?.[env]?.trim() || undefined;
13
}
14
if (typeof (globalThis as any).Deno !== 'undefined') {
15
- return (globalThis as any).Deno.env?.get?.(env)?.trim();
+ return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
16
17
return undefined;
18
};
0 commit comments