From: Bjørn Erik Pedersen Date: Fri, 23 Aug 2019 05:37:56 +0000 (+0200) Subject: source: Remove debug check left during development X-Git-Tag: v0.58.0~28 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb;p=brevno-suite%2Fhugo source: Remove debug check left during development Fixes #6249 --- diff --git a/source/fileInfo.go b/source/fileInfo.go index a4cbf6fe..849afa45 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()) }