Skip to content
Permalink
Browse files

source: Remove debug check left during development

Fixes #6249
  • Loading branch information...
bep committed Aug 23, 2019
1 parent fd3d90c commit ad1d6d6406c9b208d4fd4e09d6ad9ef19aa65dbb
Showing with 2 additions and 2 deletions.
  1. +2 −2 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())
}

0 comments on commit ad1d6d6

Please sign in to comment.
You can’t perform that action at this time.