diff --git a/notify/jira/jira.go b/notify/jira/jira.go index e2ecd9dac..ee8bc2e33 100644 --- a/notify/jira/jira.go +++ b/notify/jira/jira.go @@ -143,7 +143,7 @@ func (n *Notifier) prepareIssueRequestBody(_ context.Context, logger *slog.Logge return issue{}, fmt.Errorf("issue_type template: %w", err) } - // Recursively convert any maps to map[string]interface{}, filtering out all non-string keys, so the json encoder + // Recursively convert any maps to map[string]any, filtering out all non-string keys, so the json encoder // doesn't blow up when marshaling JIRA requests. fieldsWithStringKeys, err := tcontainer.ConvertToMarshalMap(n.conf.Fields, func(v string) string { return v }) if err != nil { diff --git a/template/template.go b/template/template.go index 5e1bdc23a..49eeacf31 100644 --- a/template/template.go +++ b/template/template.go @@ -434,7 +434,7 @@ type TemplateFunc func(string) (string, error) // deepCopyWithTemplate returns a deep copy of a map/slice/array/string/int/bool or combination thereof, executing the // provided template (with the provided data) on all string keys or values. All maps are connverted to -// map[string]interface{}, with all non-string keys discarded. +// map[string]any, with all non-string keys discarded. func DeepCopyWithTemplate(value any, tmplTextFunc TemplateFunc) (any, error) { if value == nil { return value, nil