mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
chore: modernize some code
This commit is contained in:
@@ -223,7 +223,7 @@ func ParametrizedConfigurationUnmarshallerHook[OuterConfiguration any, InnerConf
|
||||
return from.Interface(), nil
|
||||
}
|
||||
configField := to.FieldByName("Config")
|
||||
fromConfig := reflect.MakeMap(reflect.TypeOf(gin.H{}))
|
||||
fromConfig := reflect.MakeMap(reflect.TypeFor[gin.H]())
|
||||
|
||||
// Find "type" key in map to get input type. Keep existing fields as is.
|
||||
// Move everything else in "config".
|
||||
|
||||
Reference in New Issue
Block a user