mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
tpl/tplimpl: Fix dropped error
This commit is contained in:
parent
a692278bc6
commit
625162674d
1 changed files with 3 additions and 0 deletions
|
@ -758,6 +758,9 @@ var embeddedTemplatesFs embed.FS
|
|||
|
||||
func (t *templateHandler) loadEmbedded() error {
|
||||
return fs.WalkDir(embeddedTemplatesFs, ".", func(path string, d fs.DirEntry, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if d == nil || d.IsDir() {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue