mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-13 01:54:52 +08:00
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:
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user