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

refactor: clarify filter func return val meaning #2958

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WofWca
Copy link
Contributor

@WofWca WofWca commented Nov 24, 2024

Description

This should it easier to understand whether you're supposed to return true or false.
I know it's pretty much the standard that true is for keep, but this is a simple change that should make developers think less.

The same change probably should be implemented for pion/ice, where these functions are actually invoked.

Reference issue

No

Copy link

codecov bot commented Nov 24, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 77.86%. Comparing base (7c76e09) to head (329ddf1).

Files with missing lines Patch % Lines
settingengine.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2958      +/-   ##
==========================================
+ Coverage   77.79%   77.86%   +0.07%     
==========================================
  Files          89       89              
  Lines       10515    10515              
==========================================
+ Hits         8180     8188       +8     
+ Misses       1845     1837       -8     
  Partials      490      490              
Flag Coverage Δ
go 79.44% <0.00%> (+0.08%) ⬆️
wasm 63.56% <ø> (ø)

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.


🚨 Try these New Features:

@WofWca WofWca force-pushed the refactor-clarify-filter-predicate branch from e77b481 to 329ddf1 Compare November 24, 2024 21:10
@WofWca
Copy link
Contributor Author

WofWca commented Nov 24, 2024

CI failures seem unrelated?

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.

1 participant