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 detekt's SwallowedException warnings #237

Merged
merged 2 commits into from
May 21, 2022
Merged

Fix detekt's SwallowedException warnings #237

merged 2 commits into from
May 21, 2022

Conversation

jtraglia
Copy link
Contributor

This PR fixes the two SwallowedException warnings.

Exceptions should not be swallowed. This rule reports all instances where exceptions are caught and not correctly passed (e.g. as a cause) into a newly thrown exception.

  • For MultiaddrDns, I think it is suitable to log.debug the exception; might help if someone is having DNS issues.
  • The AsyncExt methods are meant to unwrap ExecutionException so I just suppressed the warnings here.

@jtraglia
Copy link
Contributor Author

If #236 is merged prior to this PR, we should delete the baseline file & the baseline configuration line.

Copy link
Collaborator

@Nashatyrev Nashatyrev left a comment

Choose a reason for hiding this comment

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

LGTM

@jtraglia
Copy link
Contributor Author

Hey @Nashatyrev, could you merge this PR and #236 for me?

@Nashatyrev
Copy link
Collaborator

Will fix the conflict on Monday.
Sorry for delay with this PR

@jtraglia
Copy link
Contributor Author

Hey there, no worries! I fixed the conflict. Neither of these PRs were important.

@Nashatyrev Nashatyrev merged commit e52d117 into libp2p:develop May 21, 2022
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