зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1663924 - Use IDB_TRY in ExecuteCachedStatement. r=dom-workers-and-storage-reviewers,ttung
Differential Revision: https://phabricator.services.mozilla.com/D90233
This commit is contained in:
Родитель
afcc0534f1
Коммит
2b9f6a22b0
|
@ -7092,16 +7092,8 @@ nsresult DatabaseConnection::ExecuteCachedStatement(
|
|||
ScopedLogExtraInfo{ScopedLogExtraInfo::kTagQuery, aQuery};
|
||||
|
||||
IDB_TRY_VAR(const auto stmt, GetCachedStatement(aQuery));
|
||||
|
||||
nsresult rv = aBindFunctor(*stmt);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
rv = stmt->Execute();
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
return rv;
|
||||
}
|
||||
IDB_TRY(aBindFunctor(*stmt));
|
||||
IDB_TRY(stmt->Execute());
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче