Skip to content
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

kill assertion code #3028

Merged
merged 2 commits into from May 20, 2019
Merged

kill assertion code #3028

merged 2 commits into from May 20, 2019

Conversation

charlotteliang
Copy link
Contributor

@charlotteliang charlotteliang commented May 17, 2019

Remove the _FIRInstanceIDDevAssert which is supposed to be running only for debug mode. And it crashes the app when there's an error occurred. However, we already have error checking at the same time so there's no need to assert anything. Remove all the assertion logic to simplify the code base.

For assertion on condition that is already checked in code, remove the assertion.
For assertion on conditions that is not checked, remove the assertion and add a check and log with error or debug log.

This partially resolves the crash in #3018 but we are still investigating reason causing the error to occur.

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

LGTM on fixing spelling nit and green travis.

Firebase/InstanceID/FIRIMessageCode.h Outdated Show resolved Hide resolved
@charlotteliang charlotteliang merged commit 88871d5 into master May 20, 2019
@paulb777 paulb777 deleted the iid-kill-assertion branch October 2, 2019 19:20
@firebase firebase locked and limited conversation to collaborators Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants