Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
  • Loading branch information
RikaCelery and fumiama authored Oct 13, 2024
1 parent 09e5c79 commit 2c5cfea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func patternMatch(ctx *Ctx, pattern Pattern, msgs []message.Segment) bool {
return false
}
if _, ok := ctx.State[KeyPattern]; !ok {
ctx.State[KeyPattern] = make([]*PatternParsed, 0, 1)
ctx.State[KeyPattern] = make([]*PatternParsed, 0, 4)
}
i := 0
j := 0
Expand Down

0 comments on commit 2c5cfea

Please sign in to comment.