1
0
mirror of https://github.com/prometheus/alertmanager.git synced 2026-02-05 15:45:34 +01:00

chore: interface{} -> any in comments (#4751)

Tiny left over from
https://github.com/prometheus/alertmanager/pull/4750

Signed-off-by: Solomon Jacobs <solomonjacobs@protonmail.com>
This commit is contained in:
Solomon Jacobs
2025-11-21 15:07:46 +01:00
committed by GitHub
parent 03e0782142
commit b91e9934d1
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {

View File

@@ -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