Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed May 14, 2023
1 parent f030e5d commit ca78159
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/outputter.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,9 @@ func parseConfigTemplates(ctx context.Context, c *config.Config, iface *Interfac
// be parsed anymore.
changesMade = false
for name, attributePointer := range templateMap {
templ := template.New("interface-template")
oldVal := *attributePointer

attributeTempl, err := templ.Parse(*attributePointer)
attributeTempl, err := template.New("interface-template").Parse(*attributePointer)
if err != nil {
return fmt.Errorf("failed to parse %s template: %w", name, err)
}
Expand Down

0 comments on commit ca78159

Please sign in to comment.