Make Cache.Path private

It's only used inside the package.
This commit is contained in:
greatroar
2020-09-18 11:17:29 +02:00
parent 23fcbb275a
commit cb3f531050
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ import (
// Cache manages a local cache.
type Cache struct {
Path string
path string
Base string
Created bool
PerformReadahead func(restic.Handle) bool
@@ -148,7 +148,7 @@ func New(id string, basedir string) (c *Cache, err error) {
}
c = &Cache{
Path: cachedir,
path: cachedir,
Base: basedir,
Created: created,
PerformReadahead: func(restic.Handle) bool {