Skip to content

Commit daa7cde

Browse files
committed
Fix “the blunder of the century”
https://www.youtube.com/watch?v=vcFBwt1nu2U
1 parent 30acbb8 commit daa7cde

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/cml.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,10 @@ class CML {
409409

410410
async startRunner(opts = {}) {
411411
const env = {};
412-
const sensitive =
413-
['_CML_RUNNER_SENSITIVE_ENV'] +
414-
process.env._CML_RUNNER_SENSITIVE_ENV.split(':');
412+
const sensitive = [
413+
'_CML_RUNNER_SENSITIVE_ENV',
414+
...process.env._CML_RUNNER_SENSITIVE_ENV.split(':')
415+
];
415416
for (const variable in process.env)
416417
if (!sensitive.includes(variable)) env[variable] = process.env[variable];
417418
return await this.getDriver().startRunner({ ...opts, env });

0 commit comments

Comments
 (0)