build: fix gocritic lint issue valswap

This commit is contained in:
albertony
2024-08-15 22:08:34 +01:00
committed by Nick Craig-Wood
parent c6d3714e73
commit bad8207378
+1 -3
View File
@@ -923,9 +923,7 @@ func (f *Fs) netStorageStatRequest(ctx context.Context, URL string, directory bo
entrywanted := (directory && files[i].Type == "dir") ||
(!directory && files[i].Type != "dir")
if entrywanted {
filestamp := files[0]
files[0] = files[i]
files[i] = filestamp
files[0], files[i] = files[i], files[0]
}
}
return files, nil