forked from TrueCloudLab/restic
cache: Rewrite unnecessary if-else
This commit is contained in:
parent
57d8eedb88
commit
d45a2475e1
1 changed files with 2 additions and 5 deletions
7
internal/cache/file.go
vendored
7
internal/cache/file.go
vendored
|
@ -26,11 +26,8 @@ func (c *Cache) canBeCached(t restic.FileType) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
if _, ok := cacheLayoutPaths[t]; !ok {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
_, ok := cacheLayoutPaths[t]
|
||||
return ok
|
||||
}
|
||||
|
||||
type readCloser struct {
|
||||
|
|
Loading…
Reference in a new issue