Bug 1722892 - Replace NS_ASSERTION uses in FileStreams.cpp r=janv,dom-storage-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D121554
This commit is contained in:
Jari Jalkanen 2021-08-03 02:47:22 +00:00
Родитель c003ef765b
Коммит 131e54eda8
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -49,9 +49,9 @@ NS_IMETHODIMP FileQuotaStream<FileStreamBase>::Close() {
template <class FileStreamBase>
nsresult FileQuotaStream<FileStreamBase>::DoOpen() {
QuotaManager* quotaManager = QuotaManager::Get();
NS_ASSERTION(quotaManager, "Shouldn't be null!");
MOZ_ASSERT(quotaManager, "Shouldn't be null!");
NS_ASSERTION(!mQuotaObject, "Creating quota object more than once?");
MOZ_ASSERT(!mQuotaObject, "Creating quota object more than once?");
mQuotaObject = quotaManager->GetQuotaObject(
mPersistenceType, mOriginMetadata, mClientType,
FileStreamBase::mOpenParams.localFile);