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

Fix return of nil alertErrors #557

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

hasheddan
Copy link
Contributor

Description

Fixes two cases where nil alert errors were being returned rather than
the underlying error. Calling methods on these nil alert errors can lead
to panics.

Signed-off-by: Daniel Mangum georgedanielmangum@gmail.com

Fixes two cases where nil alert errors were being returned rather than
the underlying error. Calling methods on these nil alert errors can lead
to panics.

Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
Cleans up a few unneccessary else blocks and nested if statements.

Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
@hasheddan hasheddan self-assigned this Jul 11, 2023
@Sean-Der
Copy link
Member

Great catch, thank you @hasheddan :)

@hasheddan hasheddan merged commit b033847 into pion:master Jul 11, 2023
14 checks passed
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