shithub: hugo

Download patch

ref: 508db1906beb84058e6d4394c8805532035e7bd2
parent: e5fe378925c16c75902bbb46499c376c530ebdb5
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Fri Jul 26 12:29:33 EDT 2019

Revert "cache/filecache: Skip resource cache init if the fs is missing"

I need to revisit this.

This reverts commit da4c4a7789d403af3f4f4fdd5dfd3327535e4050.

--- a/cache/filecache/filecache.go
+++ b/cache/filecache/filecache.go
@@ -330,9 +330,6 @@
 
 		if v.isResourceDir {
 			cfs = p.BaseFs.ResourcesCache
-			if cfs == nil {
-				continue
-			}
 		} else {
 			cfs = fs
 		}