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 unneeded nil check for new connections in the server #4260

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

marten-seemann
Copy link
Member

I don't believe it's needed. AddWithConnID will return false if there's no connection.
Furthermore, conn.run would have panicked with a nil pointer dereference anyway before we even hit this nil check.

Copy link

codecov bot commented Jan 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a2cf43d) 84.06% compared to head (766e44c) 84.10%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4260      +/-   ##
==========================================
+ Coverage   84.06%   84.10%   +0.04%     
==========================================
  Files         150      150              
  Lines       15425    15421       -4     
==========================================
+ Hits        12966    12969       +3     
+ Misses       1955     1950       -5     
+ Partials      504      502       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marten-seemann marten-seemann merged commit 2a7a11f into master Jan 24, 2024
34 checks passed
@marten-seemann marten-seemann deleted the server-remove-unneeded-nil-check branch January 25, 2024 07:06
mgjeong pushed a commit to mgjeong/quic-go that referenced this pull request Feb 13, 2024
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.

None yet

2 participants