shithub: hugo

Download patch

ref: ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb
parent: fd3d90ced85baaf6941be45b2fe29c25ff755c18
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Fri Aug 23 03:37:56 EDT 2019

source: Remove debug check left during development

Fixes #6249

--- a/source/fileInfo.go
+++ b/source/fileInfo.go
@@ -239,11 +239,11 @@
 	relPath := m.Path()
 	isLeafBundle := m.Classifier() == files.ContentClassLeaf
 
-	if relPath == "" || strings.Contains(relPath, "TODO") {
+	if relPath == "" {
 		return nil, errors.Errorf("no Path provided by %v (%T)", m, m.Fs())
 	}
 
-	if filename == "" || strings.Contains(filename, "TODO") {
+	if filename == "" {
 		return nil, errors.Errorf("no Filename provided by %v (%T)", m, m.Fs())
 	}