-
Notifications
You must be signed in to change notification settings - Fork 81
Remove unused named return parameters #354
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #354 +/- ##
==========================================
- Coverage 78.70% 78.64% -0.06%
==========================================
Files 82 82
Lines 5165 5165
==========================================
- Hits 4065 4062 -3
- Misses 927 929 +2
- Partials 173 174 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5d6361e
to
6f716df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for all the improvements you do <3
pkg/twcc/arrival_time_map.go
Outdated
@@ -106,11 +106,11 @@ func (m *packetArrivalTimeMap) EndSequenceNumber() int64 { | |||
// FindNextAtOrAfter returns the sequence number and timestamp of the first received packet that has a sequence number | |||
// greator or equal to sequenceNumber. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to your PR but there is a typo greator
.
@@ -106,11 +106,11 @@ func (m *packetArrivalTimeMap) EndSequenceNumber() int64 { | |||
// FindNextAtOrAfter returns the sequence number and timestamp of the first received packet that has a sequence number | |||
// greator or equal to sequenceNumber. | |||
func (m *packetArrivalTimeMap) FindNextAtOrAfter(sequenceNumber int64) ( | |||
foundSequenceNumber int64, arrivalTime int64, ok bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this change but I think it makes this function slightly less readable from foundSequenceNumber int64, arrivalTime int64, ok bool
int64, int64, bool, maybe we can move this to the function comment? or name the local variables to foundSequenceNumber and arrivalTime instead of seq and t.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps designating them 'seq' and 'arrivalTime' would ensure adherence to the 72-character constraint.
Signed-off-by: Xiaobo Liu <[email protected]>
Remove unused named return parameters from
FindNextAtOrAfter
method as they were not being used in the function implementation.