fix: if map is empty, create an empty one

This commit is contained in:
Derrick Hammer 2024-01-18 12:09:01 -05:00
parent ea60d8f0cf
commit 6be36feabf
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -145,6 +145,11 @@ func (em *ExtraMetadata) DecodeMsgpack(dec *msgpack.Decoder) error {
return err
}
}
if mapLen == 0 {
em.Data = make(map[int]interface{})
}
return nil
}