From bad82073788cc23ab031f1e3ecb5b2c5add334c5 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 31 May 2024 15:10:29 +0200 Subject: [PATCH] build: fix gocritic lint issue valswap --- backend/netstorage/netstorage.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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