mirror of
https://github.com/restic/restic.git
synced 2026-10-17 06:58:12 +00:00
cache: Rewrite unnecessary if-else
This commit is contained in:
1 parent
57d8eedb88
commit
d45a2475e1
1 file changed
+2
-5
Vendored
+2
-5
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user