From f4871ab8a1eaacdfc7e601560aa671c822732fd7 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Mon, 31 Jan 2022 12:45:00 +0100 Subject: [PATCH] Clean up redundant Promise.resolve() in WatchExpressionsSidebarPane Bug: chromium:1161501 Change-Id: Ib542bcb5cb3386b428e54d12aeb069eeeafc7a36 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3427060 Auto-Submit: Mathias Bynens Commit-Queue: Mathias Bynens Reviewed-by: Alex Rudenko Commit-Queue: Alex Rudenko --- front_end/panels/sources/WatchExpressionsSidebarPane.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front_end/panels/sources/WatchExpressionsSidebarPane.ts b/front_end/panels/sources/WatchExpressionsSidebarPane.ts index 7e7a547ecf..1349fb8552 100644 --- a/front_end/panels/sources/WatchExpressionsSidebarPane.ts +++ b/front_end/panels/sources/WatchExpressionsSidebarPane.ts @@ -171,7 +171,7 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid this.createWatchExpression(null).startEditing(); } - doUpdate(): Promise { + async doUpdate(): Promise { this.linkifier.reset(); this.contentElement.removeChildren(); this.treeOutline.removeChildren(); @@ -191,7 +191,6 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid this.createWatchExpression(expression); } - return Promise.resolve(); } private createWatchExpression(expression: string|null): WatchExpression {