build: modernize Go code with go fix for go1.25

This commit is contained in:
Nick Craig-Wood
2026-02-18 12:11:52 +00:00
parent cf97f250df
commit b2866f0291
36 changed files with 118 additions and 176 deletions
+2 -4
View File
@@ -583,9 +583,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
entriesMu.Unlock()
}
for range checkers {
wg.Add(1)
go func() {
defer wg.Done()
wg.Go(func() {
for remote := range in {
file := &Object{
fs: f,
@@ -601,7 +599,7 @@ func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err e
fs.Debugf(remote, "skipping because of error: %v", err)
}
}
}()
})
}
for _, name := range names {
isDir := name[len(name)-1] == '/'