Rewrite interface{} to any (#2535)

* chore: Rewrite interface{} to any

* Add ignore revs
This commit is contained in:
Johan Brandhorst-Satzkorn authored and GitHub committed 2022-10-25 19:29:38 -04:00
1 parent ffdad31756
commit f57454b6b9
298 files changed
+1758 -1756

No files matched your search

+3 -3
View File
@@ -461,8 +461,8 @@ func wrapHandlerWithCors(h http.Handler, props HandlerProperties) http.Handler {
}
type cmdAttrs struct {
Command string `json:"command,omitempty"`
Attributes interface{} `json:"attributes,omitempty"`
Command string `json:"command,omitempty"`
Attributes any `json:"attributes,omitempty"`
}
func wrapHandlerWithCallbackInterceptor(h http.Handler, c *Controller) http.Handler {
@@ -526,7 +526,7 @@ func wrapHandlerWithCallbackInterceptor(h http.Handler, c *Controller) http.Hand
switch {
case useForm:
if len(req.Form) > 0 {
values := make(map[string]interface{}, len(req.Form))
values := make(map[string]any, len(req.Form))
// This won't handle repeated values. That's fine, at least for now.
// We can address that if needed, which seems unlikely.
for k := range req.Form {