Commit 45f13a3
zihluwang
fix: validate non-empty list before sorting
Move the empty list check before sorting to avoid processing an empty
collection and provide clearer error handling.1 parent bbc5215 commit 45f13a3
File tree
1 file changed
+2
-2
lines changed- num4j/src/main/java/com/onixbyte/nums
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments