tpl/tplimpl: Fix dropped error

This commit is contained in:
Lars Lehtonen 2023-10-18 08:33:00 -07:00 committed by GitHub
parent a692278bc6
commit 625162674d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}