Skip to content

Commit 720b72e

Browse files
author
Benjamin Pasero
committed
debt - change delete operand (for microsoft#96022)
1 parent 9731360 commit 720b72e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/vs/code/electron-main/window.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,11 +746,11 @@ export class CodeWindow extends Disposable implements ICodeWindow {
746746

747747
// Config (combination of process.argv and window configuration)
748748
const environment = parseArgs(process.argv, OPTIONS);
749-
const config = Object.assign(environment, windowConfiguration);
749+
const config = Object.assign(environment, windowConfiguration) as unknown as { [key: string]: unknown };
750750
for (const key in config) {
751-
const configValue = (config as any)[key];
751+
const configValue = config[key];
752752
if (configValue === undefined || configValue === null || configValue === '' || configValue === false) {
753-
delete (config as any)[key]; // only send over properties that have a true value
753+
delete config[key]; // only send over properties that have a true value
754754
}
755755
}
756756

src/vs/workbench/browser/parts/statusbar/statusbarPart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ class StatusbarEntryItem extends Disposable {
703703
if (entry.tooltip) {
704704
this.container.title = entry.tooltip;
705705
} else {
706-
delete this.container.title;
706+
this.container.title = '';
707707
}
708708
}
709709

0 commit comments

Comments
 (0)