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

Guard nil address #36

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Guard nil address #36

merged 1 commit into from
Sep 6, 2023

Conversation

noahsmartin
Copy link
Member

No description provided.


// Address will be 0 if the protocol is not available (such as only defined on a newer OS)
guard address != 0 else {
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

We should look into some logging soon for cases like this.

@noahsmartin noahsmartin merged commit c8b8f59 into main Sep 6, 2023
@noahsmartin noahsmartin deleted the guardNilAddress branch September 6, 2023 18:48
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