diff --git a/internal/cache/backend.go b/internal/cache/backend.go index b6c163b29..14c796019 100644 --- a/internal/cache/backend.go +++ b/internal/cache/backend.go @@ -44,8 +44,8 @@ func (b *Backend) Remove(ctx context.Context, h restic.Handle) error { } var autoCacheTypes = map[restic.FileType]struct{}{ - restic.IndexFile: struct{}{}, - restic.SnapshotFile: struct{}{}, + restic.IndexFile: {}, + restic.SnapshotFile: {}, } // Save stores a new file in the backend and the cache.