Use ??= in more places (#163594)

This commit is contained in:
Matt Bierner
2022-10-13 14:59:35 -07:00
committed by GitHub
parent 65a9097aa2
commit 186d3415a3
11 changed files with 16 additions and 44 deletions

View File

@@ -35,9 +35,7 @@ export class SimpleBrowserManager {
const url = state?.url ?? '';
const view = SimpleBrowserView.restore(this.extensionUri, url, panel);
this.registerWebviewListeners(view);
if (!this._activeView) {
this._activeView = view;
}
this._activeView ??= view;
}
private registerWebviewListeners(view: SimpleBrowserView) {