From ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 23 Aug 2019 07:37:56 +0200 Subject: [PATCH] source: Remove debug check left during development Fixes #6249 --- source/fileInfo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/fileInfo.go b/source/fileInfo.go index a4cbf6fe6..849afa45e 100644 --- a/source/fileInfo.go +++ b/source/fileInfo.go @@ -239,11 +239,11 @@ func (sp *SourceSpec) NewFileInfo(fi hugofs.FileMetaInfo) (*FileInfo, error) { 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()) }