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

Prefer strings.Cut to strings.SplitN(..., 2) #11758

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

Conversation

serprex
Copy link

@serprex serprex commented Nov 26, 2024

No description provided.

@serprex serprex requested a review from a team as a code owner November 26, 2024 17:29
Copy link

linux-foundation-easycla bot commented Nov 26, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: serprex / name: Philip Dubé (61ee1b9)

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.53%. Comparing base (44879de) to head (61ee1b9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11758      +/-   ##
==========================================
- Coverage   91.53%   91.53%   -0.01%     
==========================================
  Files         443      443              
  Lines       23766    23762       -4     
==========================================
- Hits        21754    21750       -4     
  Misses       1638     1638              
  Partials      374      374              

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

@serprex
Copy link
Author

serprex commented Nov 27, 2024

Should add Skip Changelog to Labels

@dmathieu
Copy link
Member

I'm not sure this doesn't need a changelog entry.
While readability improvements definitely don't, switching from strings.Cut to strings.SplitN also reduces the number of allocations. So it's a small improvement in memory use.

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