mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
build: fix gocritic lint issue elseif
This commit is contained in:
committed by
Nick Craig-Wood
parent
4454ed9d3b
commit
e82b5b11af
@@ -203,11 +203,9 @@ func (fh *WriteFileHandle) close() (err error) {
|
||||
if err == nil {
|
||||
fh.file.setObject(fh.o)
|
||||
err = writeCloseErr
|
||||
} else {
|
||||
} else if fh.file.getObject() == nil {
|
||||
// Remove vfs file entry when no object is present
|
||||
if fh.file.getObject() == nil {
|
||||
_ = fh.file.Remove()
|
||||
}
|
||||
_ = fh.file.Remove()
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user