source: Remove debug check left during development

Fixes #6249
This commit is contained in:
Bjørn Erik Pedersen 2019-08-23 07:37:56 +02:00
parent fd3d90ced8
commit ad1d6d6406
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View 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())
}