mirror of
https://github.com/restic/restic.git
synced 2025-08-15 00:57:27 +00:00
simplified prefix removal, removed unnecessary if-else statements
This commit is contained in:
6
internal/cache/file.go
vendored
6
internal/cache/file.go
vendored
@@ -214,9 +214,5 @@ func (c *Cache) Has(h restic.Handle) bool {
|
||||
}
|
||||
|
||||
_, err := fs.Stat(c.filename(h))
|
||||
if err == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
return err == nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user