Skip to content

Commit

Permalink
tpl/tplimpl: Fix typo in global variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored and bep committed Jun 26, 2023
1 parent 019299b commit e3308a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tpl/tplimpl/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -754,15 +754,15 @@ func (t *templateHandler) applyTemplateTransformers(ns *templateNamespace, ts *t
//go:embed embedded/templates/*
//go:embed embedded/templates/_default/*
//go:embed embedded/templates/_server/*
var embededTemplatesFs embed.FS
var embeddedTemplatesFs embed.FS

func (t *templateHandler) loadEmbedded() error {
return fs.WalkDir(embededTemplatesFs, ".", func(path string, d fs.DirEntry, err error) error {
return fs.WalkDir(embeddedTemplatesFs, ".", func(path string, d fs.DirEntry, err error) error {
if d == nil || d.IsDir() {
return nil
}

templb, err := embededTemplatesFs.ReadFile(path)
templb, err := embeddedTemplatesFs.ReadFile(path)
if err != nil {
return err
}
Expand Down

0 comments on commit e3308a0

Please sign in to comment.