Bug 1840184 - Remove redundant FileSystemWritableFileStreamChild shutdown check. r=dom-storage-reviewers,janv

Both use cases of the getter of the WritableFileStream pointer are already handling the case where the result is null. In the debug-only check of whether all streams are closed, null result is possible, as evidenced by the bug. When the streams are closed at shutdown, we assume that closing takes place only once and the result is not null but since the second closing can be handled as a no-op, it is not necessary enforce this expectation, following declarative API design.

Differential Revision: https://phabricator.services.mozilla.com/D202589
This commit is contained in:
Jari Jalkanen 2024-02-28 08:48:57 +00:00
parent e3d0adf0d9
commit 5c00746ef4

View File

@ -21,7 +21,6 @@ class FileSystemWritableFileStreamChild
NS_INLINE_DECL_REFCOUNTING(FileSystemWritableFileStreamChild, override)
FileSystemWritableFileStream* MutableWritableFileStreamPtr() const {
MOZ_ASSERT(mStream);
return mStream;
}