Revert "cache/filecache: Skip resource cache init if the fs is missing"
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 26 Jul 2019 14:29:33 +0000 (16:29 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 26 Jul 2019 14:29:33 +0000 (16:29 +0200)
I need to revisit this.

This reverts commit da4c4a7789d403af3f4f4fdd5dfd3327535e4050.

cache/filecache/filecache.go

index 216c280c2ce80ec0ef914f87aac7a40e2102d493..bf004c8f7b65ff2a0a01082b6292d43ab60de051 100644 (file)
@@ -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
                }