source: Remove debug check left during development
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 23 Aug 2019 05:37:56 +0000 (07:37 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 23 Aug 2019 05:37:56 +0000 (07:37 +0200)
Fixes #6249

source/fileInfo.go

index a4cbf6fe621b5768e9faa903e9e8dbf652034c58..849afa45e7e38e06a603b890f2edb9cd617eac88 100644 (file)
@@ -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())
        }