Commit b230a01
fix: add non-null assertions for Uint32Array index access in sortValues
noUncheckedIndexedAccess causes Uint32Array element access to return
number | undefined. Since loop bounds guarantee valid indices, use !
to assert non-null and satisfy the type checker.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d31aa7d commit b230a01
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
757 | | - | |
| 757 | + | |
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
| 762 | + | |
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
768 | | - | |
| 768 | + | |
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| |||
0 commit comments