Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

  • leverage max(...) builtin
  • explicitly return values (to satisfy linters)

- leverage `max` builtin
- explicit return values (to satisfy linters)
@julio-lopez julio-lopez requested a review from Copilot October 29, 2025 23:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the maxContentLengths function to use Go's built-in max() function and explicitly return values to satisfy linter requirements.

  • Replaced manual if-condition comparisons with max() builtin calls
  • Added explicit return statement with named return values
  • Simplified the function logic while maintaining the same functionality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.00%. Comparing base (cb455c6) to head (27f5726).
⚠️ Report is 716 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4932      +/-   ##
==========================================
+ Coverage   75.86%   78.00%   +2.14%     
==========================================
  Files         470      540      +70     
  Lines       37301    31268    -6033     
==========================================
- Hits        28299    24392    -3907     
+ Misses       7071     4832    -2239     
- Partials     1931     2044     +113     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@julio-lopez julio-lopez marked this pull request as ready for review October 30, 2025 00:08
@julio-lopez julio-lopez merged commit 4150cf9 into kopia:master Oct 30, 2025
27 checks passed
@julio-lopez julio-lopez deleted the refactor/max-content-lengths branch October 30, 2025 00:08
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.

1 participant