build: fix gocritic lint issue assignop

This commit is contained in:
albertony
2024-05-31 14:37:21 +02:00
committed by Nick Craig-Wood
parent 59501fcdb6
commit c6d3714e73
10 changed files with 13 additions and 13 deletions

View File

@@ -903,7 +903,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
// Backward compatible to old config
if len(opt.Upstreams) == 0 && len(opt.Remotes) > 0 {
for i := 0; i < len(opt.Remotes)-1; i++ {
opt.Remotes[i] = opt.Remotes[i] + ":ro"
opt.Remotes[i] += ":ro"
}
opt.Upstreams = opt.Remotes
}