mirror of
https://github.com/restic/restic.git
synced 2026-05-22 01:55:25 +00:00
cache: Rewrite unnecessary if-else
This commit is contained in:
Vendored
+2
-5
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user