chore(all): resolve lint findings, update example plugin, refine docs and add LGPL licenses

This commit is contained in:
2026-10-07 00:57:35 +08:00
parent e8e9d77974
commit 8e8ddeddb6
388 changed files with 4638 additions and 3321 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ package progress
import (
"bd2server/internal/server/wire"
"fmt"
"sort"
"slices"
"strconv"
)
@@ -41,7 +41,7 @@ func (s *Store) FieldBuffs() ([][]byte, error) {
}
ids = append(ids, id)
}
sort.Slice(ids, func(i, j int) bool { return ids[i] < ids[j] })
slices.Sort(ids)
var out [][]byte
for _, id := range ids {
out = append(out, entries[strconv.FormatUint(id, 10)])