Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-23 08:37:56 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-23 08:37:56 +0300
commitad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb (patch)
tree62071c1ec62a3d4bc22cef577ddb4a67bc575d85 /source
parentfd3d90ced85baaf6941be45b2fe29c25ff755c18 (diff)
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())
}