Bug 1351231, 1351231, 1351231, 1351231, 1351231: apply code formatting via Lando

# ignore-this-changeset
This commit is contained in:
Otto Länd 2023-01-20 09:51:36 +00:00
Родитель 14ff5b1650
Коммит 7310d9e57b
1 изменённых файлов: 9 добавлений и 10 удалений

Просмотреть файл

@ -208,16 +208,15 @@ IPCResult FetchParent::RecvAbortFetchOp() {
mIsDone = true;
RefPtr<FetchParent> self = this;
nsCOMPtr<nsIRunnable> r = NS_NewRunnableFunction(
__func__, [self]() mutable {
FETCH_LOG(("FetchParent::RecvAbortFetchOp Runnable"));
AssertIsOnMainThread();
if (self->mResponsePromises) {
RefPtr<FetchService> fetchService = FetchService::GetInstance();
MOZ_ASSERT(fetchService);
fetchService->CancelFetch(std::move(self->mResponsePromises));
}
});
nsCOMPtr<nsIRunnable> r = NS_NewRunnableFunction(__func__, [self]() mutable {
FETCH_LOG(("FetchParent::RecvAbortFetchOp Runnable"));
AssertIsOnMainThread();
if (self->mResponsePromises) {
RefPtr<FetchService> fetchService = FetchService::GetInstance();
MOZ_ASSERT(fetchService);
fetchService->CancelFetch(std::move(self->mResponsePromises));
}
});
MOZ_ALWAYS_SUCCEEDS(
SchedulerGroup::Dispatch(TaskCategory::Other, r.forget()));