fix(blogo,metadata): return TypedMetadata directly if Metadata already implements it

This commit is contained in:
Guz
2025-01-24 16:03:48 -03:00
parent 8134b104a9
commit 5008f9d6ad

View File

@@ -46,6 +46,9 @@ type TypedMetadata interface {
}
func Typed(m Metadata) TypedMetadata {
if m, ok := m.(TypedMetadata); ok {
return m
}
return &typedMetadata{m}
}