mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 06:17:45 +00:00
cache/filecache: Skip resource cache init if the fs is missing
Fixes #6113
This commit is contained in:
1 file changed
+3
Vendored
+3
@@ -330,6 +330,9 @@ func NewCaches(p *helpers.PathSpec) (Caches, error) {
|
|||||||
|
|
||||||
if v.isResourceDir {
|
if v.isResourceDir {
|
||||||
cfs = p.BaseFs.ResourcesCache
|
cfs = p.BaseFs.ResourcesCache
|
||||||
|
if cfs == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
cfs = fs
|
cfs = fs
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user