Skip to content

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

Merged
merged 1 commit into from
Aug 11, 2025
Merged

Conversation

cppcoffee
Copy link
Member

@cppcoffee cppcoffee commented Aug 10, 2025

Remove unused named return parameters from FindNextAtOrAfter method as they were not being used in the function implementation.

Copy link

codecov bot commented Aug 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.64%. Comparing base (e88f9c9) to head (6f716df).

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     
Flag Coverage Δ
go 78.64% <100.00%> (-0.06%) ⬇️
wasm 76.14% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cppcoffee cppcoffee changed the title Remove unused named return parameters in FindNextAtOrAfter Remove unused named return parameters Aug 10, 2025
@cppcoffee cppcoffee force-pushed the master branch 2 times, most recently from 5d6361e to 6f716df Compare August 10, 2025 08:01
@cppcoffee cppcoffee closed this Aug 10, 2025
@cppcoffee cppcoffee reopened this Aug 10, 2025
Copy link
Member

@JoeTurki JoeTurki left a 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

@@ -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.
Copy link
Member

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,
Copy link
Member

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.

Copy link
Member Author

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.

@cppcoffee cppcoffee merged commit a6f4268 into pion:master Aug 11, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants