diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-08-23 07:37:56 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-08-23 07:37:56 +0200 |
commit | ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb (patch) | |
tree | 62071c1ec62a3d4bc22cef577ddb4a67bc575d85 /source/fileInfo.go | |
parent | fd3d90ced85baaf6941be45b2fe29c25ff755c18 (diff) | |
download | hugo-ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb.tar.gz hugo-ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb.zip |
source: Remove debug check left during development
Fixes #6249
Diffstat (limited to 'source/fileInfo.go')
-rw-r--r-- | source/fileInfo.go | 4 |
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()) } |