Skip to content

Conversation

@vil02
Copy link
Contributor

@vil02 vil02 commented Jun 30, 2025

This code can be simplified by using the max function.

This change also resolves the consider-using-max-builtin / R1731 warning.

@vil02 vil02 marked this pull request as ready for review June 30, 2025 13:37
Note that the code will error if `num_choices < 1`.

Co-authored-by: Akuli <akuviljanen17@gmail.com>
@vil02 vil02 changed the title Reduce complexity by using max Reduce complexity Jun 30, 2025
@vil02 vil02 requested a review from Akuli June 30, 2025 15:45
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