mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
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:
parent
e3d0adf0d9
commit
5c00746ef4
@ -21,7 +21,6 @@ class FileSystemWritableFileStreamChild
|
||||
NS_INLINE_DECL_REFCOUNTING(FileSystemWritableFileStreamChild, override)
|
||||
|
||||
FileSystemWritableFileStream* MutableWritableFileStreamPtr() const {
|
||||
MOZ_ASSERT(mStream);
|
||||
return mStream;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user