aboutsummaryrefslogtreecommitdiffhomepage
path: root/cache
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-07-26 16:29:33 +0200
committerBjørn Erik Pedersen <[email protected]>2019-07-26 16:29:33 +0200
commit508db1906beb84058e6d4394c8805532035e7bd2 (patch)
tree9320b29114f608e95465f270c15dc2cb70d85a4a /cache
parente5fe378925c16c75902bbb46499c376c530ebdb5 (diff)
downloadhugo-508db1906beb84058e6d4394c8805532035e7bd2.tar.gz
hugo-508db1906beb84058e6d4394c8805532035e7bd2.zip
Revert "cache/filecache: Skip resource cache init if the fs is missing"
I need to revisit this. This reverts commit da4c4a7789d403af3f4f4fdd5dfd3327535e4050.
Diffstat (limited to 'cache')
-rw-r--r--cache/filecache/filecache.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/cache/filecache/filecache.go b/cache/filecache/filecache.go
index 216c280c2..bf004c8f7 100644
--- a/cache/filecache/filecache.go
+++ b/cache/filecache/filecache.go
@@ -330,9 +330,6 @@ func NewCaches(p *helpers.PathSpec) (Caches, error) {
if v.isResourceDir {
cfs = p.BaseFs.ResourcesCache
- if cfs == nil {
- continue
- }
} else {
cfs = fs
}