2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 06:46:34 +00:00

cache: Rewrite unnecessary if-else

This commit is contained in:
greatroar 2022-12-03 08:54:55 +01:00
parent 57d8eedb88
commit d45a2475e1

View File

@ -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 {