Skip to content

Commit

Permalink
source: Remove debug check left during development
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 23, 2019
1 parent fd3d90c commit ad1d6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/fileInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit ad1d6d6

Please sign in to comment.