Commit 2d6618d
authored
Combine conditional branches to satisfy ruff linting
- Updated `wiggle_sort` logic to merge the odd and even swap conditions using a single `or` expression.
- Fixes SIM114 ruff linter check failure (`Combine if branches using logical or operator`).1 parent 2101118 commit 2d6618d
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 28 | + | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
0 commit comments