Skip to content

Commit 745ff31

Browse files
committed
fix default Env value to have explicit default EDITOR=undefined set
1 parent 94fc4f6 commit 745ff31

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/env.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ type Env = {
99
* this tool needs to access, whether their values are defined or not.
1010
*/
1111
export function getEnvironmentVariables(): Env {
12-
return ['EDITOR'].reduce((object, key) => {
13-
return { ...object, [key]: process.env[key] };
14-
}, {} as Env);
12+
return ['EDITOR'].reduce(
13+
(object, key) => {
14+
return { ...object, [key]: process.env[key] };
15+
},
16+
{
17+
EDITOR: undefined,
18+
},
19+
);
1520
}

0 commit comments

Comments
 (0)