Skip to content

Commit

Permalink
chore: Tighten up types in fromToml template function
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Dec 1, 2023
1 parent 748cd1b commit e68328e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/templatefuncs.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (c *Config) fromJsoncTemplateFunc(s string) any {
}

func (c *Config) fromTomlTemplateFunc(s string) any {
var value any
var value map[string]any
if err := chezmoi.FormatTOML.Unmarshal([]byte(s), &value); err != nil {
panic(err)
}
Expand Down

0 comments on commit e68328e

Please sign in to comment.