Skip to content

Commit 3cd87de

Browse files
chore(internal): codegen related update
1 parent 8b8f2c9 commit 3cd87de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/utils/env.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
*/
1010
export const readEnv = (env: string): string | undefined => {
1111
if (typeof (globalThis as any).process !== 'undefined') {
12-
return (globalThis as any).process.env?.[env]?.trim() ?? undefined;
12+
return (globalThis as any).process.env?.[env]?.trim() || undefined;
1313
}
1414
if (typeof (globalThis as any).Deno !== 'undefined') {
15-
return (globalThis as any).Deno.env?.get?.(env)?.trim();
15+
return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
1616
}
1717
return undefined;
1818
};

0 commit comments

Comments
 (0)