Skip to content

Commit 6a6b5ff

Browse files
Annhiluccopybara-github
authored andcommitted
chore: Internal change
PiperOrigin-RevId: 897260621
1 parent 6a0ff96 commit 6a6b5ff

File tree

1 file changed

+2
-2
lines changed
  • src/interactions/internal/utils

1 file changed

+2
-2
lines changed

src/interactions/internal/utils/env.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
*/
1616
export const readEnv = (env: string): string | undefined => {
1717
if (typeof (globalThis as any).process !== 'undefined') {
18-
return (globalThis as any).process.env?.[env]?.trim() ?? undefined;
18+
return (globalThis as any).process.env?.[env]?.trim() || undefined;
1919
}
2020
if (typeof (globalThis as any).Deno !== 'undefined') {
21-
return (globalThis as any).Deno.env?.get?.(env)?.trim();
21+
return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
2222
}
2323
return undefined;
2424
};

0 commit comments

Comments
 (0)