Skip to content

Commit

Permalink
upfront allocate in filterupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleSanderson authored Aug 13, 2024
1 parent 49f2bca commit 52ec5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ func handleAutobrrFilterUpdate(w http.ResponseWriter, r *http.Request) {
Shows string
}{}

buf := make([]string, 0)
buf := make([]string, 0, len(singlemap))
for k := range singlemap {
if len(k) < 1 {
continue
Expand Down

0 comments on commit 52ec5f5

Please sign in to comment.