mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:54:44 +01:00
build: fix gocritic lint issue valswap
This commit is contained in:
parent
c6d3714e73
commit
bad8207378
@ -923,9 +923,7 @@ func (f *Fs) netStorageStatRequest(ctx context.Context, URL string, directory bo
|
|||||||
entrywanted := (directory && files[i].Type == "dir") ||
|
entrywanted := (directory && files[i].Type == "dir") ||
|
||||||
(!directory && files[i].Type != "dir")
|
(!directory && files[i].Type != "dir")
|
||||||
if entrywanted {
|
if entrywanted {
|
||||||
filestamp := files[0]
|
files[0], files[i] = files[i], files[0]
|
||||||
files[0] = files[i]
|
|
||||||
files[i] = filestamp
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return files, nil
|
return files, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user