mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 04:53:33 +01:00
auto-fixed prefer-const violation
This commit is contained in:
@@ -349,7 +349,7 @@ function setCaseInsensitive(env: { [key: string]: unknown }, key: string, value:
|
||||
|
||||
function removeNulls(env: { [key: string]: unknown | null }): void {
|
||||
// Don't delete while iterating the object itself
|
||||
for (let key of Object.keys(env)) {
|
||||
for (const key of Object.keys(env)) {
|
||||
if (env[key] === null) {
|
||||
delete env[key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user