Bug 998736 removed NS_ENSURE_SUCCESS to avoid spamming mochitests. r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D177662
This commit is contained in:
dylan 2023-05-11 07:25:38 +00:00
parent 5817d7adf0
commit 73d5d1ddc9

View File

@ -506,7 +506,9 @@ nsFileInputStream::Read(char* aBuf, uint32_t aCount, uint32_t* _retval) {
return rv;
}
NS_ENSURE_SUCCESS(rv, rv);
if (NS_FAILED(rv)) {
return rv;
}
// Check if we're at the end of file and need to close
if (mBehaviorFlags & CLOSE_ON_EOF && *_retval == 0) {