Resolve violations of github/array-foreach lint

Resolves #199
This commit is contained in:
Michael Huynh 2020-09-20 17:03:01 +08:00
parent b2dfa6e690
commit 4666a0eed0
No known key found for this signature in database
GPG key ID: 760127DAE4EDD351
19 changed files with 52 additions and 37 deletions

View file

@ -61,7 +61,9 @@ function importTracerEnvironment(config: Config) {
if (!("ODASA_TRACER_CONFIGURATION" in process.env)) {
const jsonEnvFile = path.join(config.tempDir, codeqlEnvJsonFilename);
const env = JSON.parse(fs.readFileSync(jsonEnvFile).toString("utf-8"));
Object.keys(env).forEach((key) => (process.env[key] = env[key]));
for (const key of Object.keys(env)) {
process.env[key] = env[key];
}
}
}