chore: replace reflect.Ptr with reflect.Pointer (#8262)

This commit is contained in:
ᴊᴏᴇ ᴄʜᴇɴ
2026-05-17 20:39:09 -04:00
committed by GitHub
parent d7571322a0
commit a5d3439e2d
+2 -2
View File
@@ -41,7 +41,7 @@ func Assign(form any, data map[string]any) {
typ := reflect.TypeOf(form)
val := reflect.ValueOf(form)
if typ.Kind() == reflect.Ptr {
if typ.Kind() == reflect.Pointer {
typ = typ.Elem()
val = val.Elem()
}
@@ -95,7 +95,7 @@ func validate(errs binding.Errors, data map[string]any, f Form, l macaron.Locale
Assign(f, data)
typ := reflect.TypeOf(f)
if typ.Kind() == reflect.Ptr {
if typ.Kind() == reflect.Pointer {
typ = typ.Elem()
}