Clean up redundant Promise.resolve() in PersistenceTestRunner

Bug: chromium:1161501
Change-Id: I6280619afa813470af65b819e25edb232da3e701
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3428450
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Auto-Submit: Mathias Bynens <mathias@chromium.org>
Reviewed-by: Randolf Jung <jrandolf@chromium.org>
Commit-Queue: Randolf Jung <jrandolf@chromium.org>
This commit is contained in:
Mathias Bynens
2022-02-01 10:47:22 +00:00
committed by Devtools-frontend LUCI CQ
parent 46ea9672dc
commit ae6511abf2
@@ -23,7 +23,7 @@ Persistence.AutomappingStatus.prototype.toString = function() {
return lines.join('\n');
};
BindingsTestRunner.waitForBinding = function(fileName) {
BindingsTestRunner.waitForBinding = async function(fileName) {
const uiSourceCodes = self.Workspace.workspace.uiSourceCodes();
for (const uiSourceCode of uiSourceCodes) {
@@ -34,7 +34,7 @@ BindingsTestRunner.waitForBinding = function(fileName) {
}
if (uiSourceCode.name() === fileName) {
return Promise.resolve(binding);
return binding;
}
}