Skip to content

Commit b9e02e0

Browse files
committed
What if we didnt set any env at all?
1 parent 690847b commit b9e02e0

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

test.js

+1-15
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,7 @@ console.log(
1717
);
1818

1919
const mkCommand = cmd => (args, options = {}) => {
20-
const { error, stdout, stderr, status } = spawnSync(
21-
cmd,
22-
args,
23-
Object.assign(
24-
{
25-
env: Object.assign(
26-
process.env,
27-
{PATH: process.env.PATH || process.env.Path},
28-
{ SLS_DEBUG: 't' },
29-
process.env.CI ? { LC_ALL: 'C.UTF-8', LANG: 'C.UTF-8' } : {}
30-
)
31-
},
32-
options
33-
)
34-
);
20+
const { error, stdout, stderr, status } = spawnSync(cmd, args, options);
3521
if (error) throw error;
3622
if (status)
3723
throw new Error(

0 commit comments

Comments
 (0)