Commit d5d57ee
committed
Now the logic is correct and handles both cases:
- None values: Sets them to 0
- Negative values: Sets them to 0
- Positive values: Leaves them unchanged
This preserves the original intent of the code while being more readable than the redundant max() calls.1 parent 5529330 commit d5d57ee
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
276 | 278 | | |
277 | | - | |
278 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
279 | 282 | | |
280 | 283 | | |
281 | 284 | | |
| |||
0 commit comments