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 <mathias@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
This commit is contained in:
Mathias Bynens
2022-01-31 12:23:31 +00:00
committed by Devtools-frontend LUCI CQ
parent 1b7adc118f
commit f4871ab8a1
@@ -171,7 +171,7 @@ export class WatchExpressionsSidebarPane extends UI.ThrottledWidget.ThrottledWid
this.createWatchExpression(null).startEditing();
}
doUpdate(): Promise<void> {
async doUpdate(): Promise<void> {
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 {