Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: fix gocritic lint issue valswap

albertonybad82073788c
diff --git a/backend/netstorage/netstorage.go b/backend/netstorage/netstorage.go
index 108c03596..8e0426171 100755
--- a/backend/netstorage/netstorage.go
+++ b/backend/netstorage/netstorage.go
@@ -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