Skip to content

Checking for UnknownDocument #1174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 31, 2018

Conversation

schmidt-sebastian
Copy link
Contributor

Add handling of UnknownDocument in places where we check for instanceof NoDocument.

} else {
return maybeDoc === null || maybeDoc instanceof NoDocument;
}
return this.exists === maybeDoc instanceof Document;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that prettier ate the parenthesis around maybeDoc instanceof Document.

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@schmidt-sebastian schmidt-sebastian merged commit 8b903fe into mrschmidt-commitversion Aug 31, 2018
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt-unknowndocument branch September 5, 2018 18:22
@firebase firebase locked and limited conversation to collaborators Oct 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants