mirror of
https://github.com/restic/restic.git
synced 2025-07-31 13:13:37 +00:00
cache: Rewrite unnecessary if-else
This commit is contained in:
parent
57d8eedb88
commit
d45a2475e1
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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, ok := cacheLayoutPaths[t]; !ok {
|
_, ok := cacheLayoutPaths[t]
|
||||||
return false
|
return ok
|
||||||
}
|
|
||||||
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type readCloser struct {
|
type readCloser struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user