Skip to content

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

Merged
leszko merged 1 commit intolivepeer:masterfrom
studystill:master
Jul 22, 2025
Merged

refactor: use the built-in max/min to simplify the code#3577
leszko merged 1 commit intolivepeer:masterfrom
studystill:master

Conversation

@studystill
Copy link
Contributor

@studystill studystill commented May 16, 2025

What does this pull request do? Explain your changes. (required)

Specific updates (required)

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

How did you test each of these updates (required)

Does this pull request close any open issues?

Checklist:

Signed-off-by: studystill <chenghuiyue@outlook.com>
@github-actions github-actions bot added the go Pull requests that update Go code label May 16, 2025
@studystill
Copy link
Contributor Author

friendly ping~

Copy link
Contributor

@leszko leszko left a comment

Choose a reason for hiding this comment

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

Thanks for the PR

@leszko leszko merged commit 3a69e43 into livepeer:master Jul 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants