mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 06:50:49 +00:00
parent
fd3d90ced8
commit
ad1d6d6406
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue