forked from TrueCloudLab/rclone
Fix lint issues reported by staticcheck
Used staticcheck 2022.1.2 (v0.3.2) See: staticcheck.io
This commit is contained in:
parent
74bd7f3381
commit
ec117593f1
66 changed files with 130 additions and 185 deletions
5
backend/cache/storage_persistent.go
vendored
5
backend/cache/storage_persistent.go
vendored
|
@ -456,10 +456,7 @@ func (b *Persistent) HasEntry(remote string) bool {
|
|||
|
||||
return fmt.Errorf("couldn't find object (%v)", remote)
|
||||
})
|
||||
if err == nil {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return err == nil
|
||||
}
|
||||
|
||||
// HasChunk confirms the existence of a single chunk of an object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue