Commit e68bdbe
committed
fix(action): drop len+1 capacity hint flagged by CodeQL
CodeQL's go/allocation-size-overflow rule flagged the len(hooks)+1
capacity hint as a potential integer overflow in allocation size.
In practice the hooks slice is tiny, but the hint is unnecessary
because append handles growth, so drop the +1 to clear the alert.1 parent 338ce4c commit e68bdbe
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
649 | | - | |
| 649 | + | |
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| |||
0 commit comments