Commit 7f718cf
committed
Ensure repetitions input is at least 1
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: Ifbe1e1846f6eac2c933a00a3a9af5d4c533f3c5f1 parent 3c7c7b3 commit 7f718cf
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
0 commit comments