Skip to content

Commit

Permalink
fix: fix slice init length (#4090)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathaniel Caza <[email protected]>
  • Loading branch information
cuishuang and mastercactapus authored Oct 7, 2024
1 parent 9118acf commit 29da739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alert/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ func (s *Store) Feedback(ctx context.Context, alertIDs []int) ([]Feedback, error
return nil, err
}

ids := make([]int32, len(alertIDs))
ids := make([]int32, 0, len(alertIDs))
for _, id := range alertIDs {
ids = append(ids, int32(id))
}
Expand Down

0 comments on commit 29da739

Please sign in to comment.