Skip to content

Commit b91e993

Browse files
authored
chore: interface{} -> any in comments (#4751)
Tiny left over from #4750 Signed-off-by: Solomon Jacobs <[email protected]>
1 parent 03e0782 commit b91e993

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

notify/jira/jira.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (n *Notifier) prepareIssueRequestBody(_ context.Context, logger *slog.Logge
143143
return issue{}, fmt.Errorf("issue_type template: %w", err)
144144
}
145145

146-
// Recursively convert any maps to map[string]interface{}, filtering out all non-string keys, so the json encoder
146+
// Recursively convert any maps to map[string]any, filtering out all non-string keys, so the json encoder
147147
// doesn't blow up when marshaling JIRA requests.
148148
fieldsWithStringKeys, err := tcontainer.ConvertToMarshalMap(n.conf.Fields, func(v string) string { return v })
149149
if err != nil {

template/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ type TemplateFunc func(string) (string, error)
434434

435435
// deepCopyWithTemplate returns a deep copy of a map/slice/array/string/int/bool or combination thereof, executing the
436436
// provided template (with the provided data) on all string keys or values. All maps are connverted to
437-
// map[string]interface{}, with all non-string keys discarded.
437+
// map[string]any, with all non-string keys discarded.
438438
func DeepCopyWithTemplate(value any, tmplTextFunc TemplateFunc) (any, error) {
439439
if value == nil {
440440
return value, nil

0 commit comments

Comments
 (0)