diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-23 07:37:56 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-23 07:37:56 +0200 |
commit | ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb (patch) | |
tree | 62071c1ec62a3d4bc22cef577ddb4a67bc575d85 | |
parent | fd3d90ced85baaf6941be45b2fe29c25ff755c18 (diff) |
source: Remove debug check left during development
Fixes #6249
-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()) } |