migrate to golangci-lint v2 (#13109)

* migrate to golangci-lint v2
* copyloopvar
This commit is contained in:
Michael Yang
2025-11-18 11:00:26 -08:00
committed by GitHub
parent 330f62a7fa
commit 718961de68
7 changed files with 61 additions and 33 deletions

View File

@@ -499,7 +499,6 @@ func (b *Backend) Load(ctx context.Context, progress func(float32)) error {
g, ctx := errgroup.WithContext(ctx)
g.SetLimit(runtime.GOMAXPROCS(0))
for _, t := range b.meta.Tensors().Items() {
t := t
g.Go(func() error {
tts := make([]*C.struct_ggml_tensor, max(1, len(b.tensorLoadTargets[t.Name])))
for i := range tts {