Skip to content

Commit 2d97e7f

Browse files
committed
feat: return unknown schema when non found
1 parent 9ccc712 commit 2d97e7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ebml.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ func NewDef(s schema.Schema) (*Def, error) {
8787

8888
func (d *Def) Get(id schema.ElementID) (schema.Element, bool) {
8989
el, ok := d.m[id]
90+
if !ok {
91+
el = UnknownSchema
92+
}
9093
return el, ok
9194
}
9295

0 commit comments

Comments
 (0)