summaryrefslogtreecommitdiffhomepage
path: root/source
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-08-23 07:37:56 +0200
committerBjørn Erik Pedersen <[email protected]>2019-08-23 07:37:56 +0200
commitad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb (patch)
tree62071c1ec62a3d4bc22cef577ddb4a67bc575d85 /source
parentfd3d90ced85baaf6941be45b2fe29c25ff755c18 (diff)
downloadhugo-ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb.tar.gz
hugo-ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb.zip
source: Remove debug check left during development
Fixes #6249
Diffstat (limited to 'source')
-rw-r--r--source/fileInfo.go4
1 files 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())
}