Merge b91e9e6f3a4115b9c5626aa025fd72db1357b6e5 into cb2b764cc8a8613b84c44c45b8b2b1ba9da6244d

This commit is contained in:
shanecodezzz 2026-03-01 12:16:31 +00:00 committed by GitHub
commit 06d798fe9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -302,7 +302,10 @@ func (c *Context) MustGet(key any) any {
func getTyped[T any](c *Context, key any) (res T) { func getTyped[T any](c *Context, key any) (res T) {
if val, ok := c.Get(key); ok && val != nil { if val, ok := c.Get(key); ok && val != nil {
res, _ = val.(T) res, ok = val.(T)
if !ok {
debugPrint("[WARNING] failed to convert key %v with value %v to type %T", key, val, res)
}
} }
return return
} }