mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
all: fix go-critic linter suggestions
This commit is contained in:
committed by
Nick Craig-Wood
parent
44abf6473e
commit
06c9f76cd2
@@ -261,9 +261,9 @@ func (fh *RWFileHandle) close() (err error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
copy := false
|
||||
isCopied := false
|
||||
if writer {
|
||||
copy = fh.file.delWriter(fh, fh.modified())
|
||||
isCopied = fh.file.delWriter(fh, fh.modified())
|
||||
defer fh.file.finishWriterClose()
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ func (fh *RWFileHandle) close() (err error) {
|
||||
}
|
||||
}
|
||||
|
||||
if copy {
|
||||
if isCopied {
|
||||
// Transfer the temp file to the remote
|
||||
cacheObj, err := fh.d.vfs.cache.f.NewObject(fh.remote)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user