build: remove x := x made unnecessary by the new semantics of loops in go1.22

Signed-off-by: russcoss <russcoss@outlook.com>
This commit is contained in:
russcoss
2025-09-14 15:58:20 +01:00
committed by GitHub
parent b5cbb7520d
commit d6f5652b65
11 changed files with 0 additions and 18 deletions
-2
View File
@@ -66,7 +66,6 @@ func testCacheCRUD(t *testing.T, h *Handler, c Cache, fileName string) {
func testCacheThrashDifferent(t *testing.T, h *Handler, c Cache) {
var wg sync.WaitGroup
for i := range 100 {
i := i
wg.Add(1)
go func() {
defer wg.Done()
@@ -125,7 +124,6 @@ func TestCache(t *testing.T) {
}()
billyFS := &FS{nil} // place holder billyFS
for _, cacheType := range []handleCache{cacheMemory, cacheDisk, cacheSymlink} {
cacheType := cacheType
t.Run(cacheType.String(), func(t *testing.T) {
h := &Handler{
vfs: vfs.New(object.MemoryFs, nil),