Remove extra conditional guard

strict null checks should prevent calling this function with undefined
This commit is contained in:
Matt Bierner
2019-08-21 11:57:42 -07:00
parent 6c92c45dec
commit 2637bf2bf5

View File

@@ -304,10 +304,6 @@ export class MainThreadWebviews extends Disposable implements MainThreadWebviews
}
private onDidClickLink(handle: WebviewPanelHandle, link: URI): void {
if (!link) {
return;
}
const webview = this.getWebviewEditorInput(handle);
if (this.isSupportedLink(webview, link)) {
this._openerService.open(link);