Skip to content

Conversation

EricccTaiwan
Copy link
Contributor

Passing 0 or a negative value for repetitions does not cause errors, as the input is an integer. However, this behavior may be confusing for users. To improve clarity, enforce repetitions to be an integer greater than or equal to 1 and return an error if the input is invalid.

Change-Id: Ifbe1e1846f6eac2c933a00a3a9af5d4c533f3c5f

Passing 0 or a negative value for repetitions does not cause errors,
as the input is an integer. However, this behavior may be confusing
for users. To improve clarity, enforce repetitions to be an integer
greater than or equal to 1 and return an error if the input is invalid.

Change-Id: Ifbe1e1846f6eac2c933a00a3a9af5d4c533f3c5f
@jserv jserv merged commit 0354ec7 into sysprog21:master Mar 8, 2025
1 of 2 checks passed
@jserv
Copy link
Contributor

jserv commented Mar 8, 2025

Thank @EricccTaiwan for contributing!

@EricccTaiwan EricccTaiwan deleted the fix-reps-check branch March 11, 2025 03:27
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