You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use the built-in max to simplify the code (#2697)
<!--
Please read and fill out this form before submitting your PR.
Please make sure you have reviewed our contributors guide before
submitting your
first PR.
NOTE: PR titles should follow semantic commits:
https://www.conventionalcommits.org/en/v1.0.0/
-->
## Overview
<!--
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue.
Ex: Closes #<issue number>
-->
In Go 1.21, the standard library includes built-in
[max/min](https://pkg.go.dev/[email protected]#max) function, which can
greatly simplify the code.
Signed-off-by: russcoss <[email protected]>
Co-authored-by: julienrbrt <[email protected]>
0 commit comments