Skip to content

refactor: use the built-in max/min to simplify the code#785

Merged
0xfornax merged 1 commit into
rocket-pool:masterfrom
careworry:master
May 4, 2025
Merged

refactor: use the built-in max/min to simplify the code#785
0xfornax merged 1 commit into
rocket-pool:masterfrom
careworry:master

Conversation

@careworry
Copy link
Copy Markdown
Contributor

In Go 1.21, the standard library includes built-in max/min function, which can greatly simplify the code.

0xfornax

This comment was marked as outdated.

Copy link
Copy Markdown
Member

@0xfornax 0xfornax left a comment

Choose a reason for hiding this comment

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

There are some compilation errors.

Signed-off-by: careworry <worrycare@outlook.com>
@careworry
Copy link
Copy Markdown
Contributor Author

There are some compilation errors.

Thanks. Modified, Please review again.

@0xfornax 0xfornax merged commit 9a34a02 into rocket-pool:master May 4, 2025
4 checks passed
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