Skip to content

Commit e29b8aa

Browse files
authored
Fix “the blunder of the century”
https://www.youtube.com/watch?v=vcFBwt1nu2U
1 parent aca6c5b commit e29b8aa

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
@@ -403,9 +403,10 @@ class CML {
403403

404404
async startRunner(opts = {}) {
405405
const env = {};
406-
const sensitive =
407-
['_CML_RUNNER_SENSITIVE_ENV'] +
408-
process.env._CML_RUNNER_SENSITIVE_ENV.split(':');
406+
const sensitive = [
407+
'_CML_RUNNER_SENSITIVE_ENV',
408+
...process.env._CML_RUNNER_SENSITIVE_ENV.split(':')
409+
];
409410
for (const variable in process.env)
410411
if (!sensitive.includes(variable)) env[variable] = process.env[variable];
411412
return await this.getDriver().startRunner({ ...opts, env });

0 commit comments

Comments
 (0)