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

Fixing some last bugs #45

Merged
merged 1 commit into from
Mar 8, 2019
Merged

Fixing some last bugs #45

merged 1 commit into from
Mar 8, 2019

Conversation

asutula
Copy link
Member

@asutula asutula commented Mar 8, 2019

For the record. Merging quick.

@asutula asutula added this to the Sprint 7 milestone Mar 8, 2019
@asutula asutula self-assigned this Mar 8, 2019
}
throw new Error(`@textile/react-native-sdk: no event type: ${type}`)
Copy link
Member Author

Choose a reason for hiding this comment

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

For exactly this reason, I really try to avoid assuming the function is returned from inside a previous if clause like this. Too easy to not realize you're not returning early and then this line gets called no matter what. Better to be explicit and verbose.

@asutula asutula merged commit 912c704 into master Mar 8, 2019
@asutula asutula deleted the asutula/last-fixes branch March 8, 2019 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants