From b91e9934d1c9c93f7c1a6f2fdfcdabc249defcbf Mon Sep 17 00:00:00 2001 From: Solomon Jacobs Date: Fri, 21 Nov 2025 15:07:46 +0100 Subject: [PATCH] chore: interface{} -> any in comments (#4751) Tiny left over from https://github.com/prometheus/alertmanager/pull/4750 Signed-off-by: Solomon Jacobs --- notify/jira/jira.go | 2 +- template/template.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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