From e68328eecd27255aac0a44ca33055f9c02813238 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 1 Dec 2023 14:59:22 +0100 Subject: [PATCH] chore: Tighten up types in fromToml template function --- internal/cmd/templatefuncs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/templatefuncs.go b/internal/cmd/templatefuncs.go index d85be2797df..71c155140c5 100644 --- a/internal/cmd/templatefuncs.go +++ b/internal/cmd/templatefuncs.go @@ -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) }