Open
Bug 1839577
Opened 1 year ago
Add a complementary function for OkIf
Categories
(Core :: Storage: Quota Manager, task, P3)
Core
Storage: Quota Manager
Tracking
()
NEW
People
(Reporter: janv, Unassigned)
Details
Bug 1839551 is mapping OkIf result instead of returning a custom return value:
QM_TRY(OkIf(!QuotaManager::IsShuttingDown()).mapErr([](const auto&) {
return NS_ERROR_ABORT;
}));
I think the code would be even nicer if we had a function like ErrIf<ErrorValue>:
QM_TRY(ErrIf<NS_ERROR_ABORT>(QuotaManager::IsShuttingDown()));
You need to log in
before you can comment on or make changes to this bug.
Description
•