diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-11-14 12:06:46 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-11-14 23:14:51 +0100 |
commit | 3c29c5af8ee865ef20741f576088e031e940c3d2 (patch) | |
tree | 4e05740a9e4f99360aa843da2a4d82d943c825b1 /tpl/data | |
parent | 33502667fbacf57167ede66df8f13e308a4a9aec (diff) | |
download | hugo-3c29c5af8ee865ef20741f576088e031e940c3d2.tar.gz hugo-3c29c5af8ee865ef20741f576088e031e940c3d2.zip |
cache/filecache: Add a cache prune func
Fixes #5439
Diffstat (limited to 'tpl/data')
-rw-r--r-- | tpl/data/resources_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tpl/data/resources_test.go b/tpl/data/resources_test.go index b143bb1a3..4a5482fdb 100644 --- a/tpl/data/resources_test.go +++ b/tpl/data/resources_test.go @@ -192,7 +192,10 @@ func newDeps(cfg config.Provider) *deps.Deps { logger := loggers.NewErrorLogger() p, _ := paths.New(fs, cfg) - fileCaches, _ := filecache.NewCachesFromPaths(p) + fileCaches, err := filecache.NewCachesFromPaths(p) + if err != nil { + panic(err) + } return &deps.Deps{ Cfg: cfg, |