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

Remove unreachable err handling in setupConnection #64

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

DMRobertson
Copy link
Contributor

If err is nonnil in the removed snippet, then it was also nonnil after the call to internal.HashedTokenFromRequest above, meaning that we would have returned before reaching the removed snippet.

(This shouldn't change anything at runtime, but by pruning it out I'm finding it easier to reason about what this does for #51.)

If `err` is nonnil in the removed snippet, then it was also nonnil after
the call to `internal.HashedTokenFromRequest` above, meaning that we
would have returned before reaching the removed snippet.
@DMRobertson DMRobertson marked this pull request as ready for review April 11, 2023 19:37
@DMRobertson DMRobertson requested a review from kegsay April 11, 2023 19:37
@DMRobertson DMRobertson merged commit e580971 into main Apr 12, 2023
@DMRobertson DMRobertson deleted the dmr/remove-dead-code branch May 3, 2023 10: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