diff --git a/internal/cache/file.go b/internal/cache/file.go index 6e7282641..5b93f3990 100644 --- a/internal/cache/file.go +++ b/internal/cache/file.go @@ -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 {