Commit 3b64a20
committed
Refactor: Improve list generation in _generatePathological
Refine the list creation to be more explicit and performant.
- Use a more descriptive name `sortedBase` instead of `base`.
- Create the initial `sortedBase` list with `growable: false` as it is never modified.
- Use `List.of` and explicitly set `growable: true` for the final copies to make the intent clear that they are mutable.1 parent 660314a commit 3b64a20
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
0 commit comments