fix: missing return Encode

This commit is contained in:
Derrick Hammer 2024-01-04 13:48:17 -05:00
parent 2ac5ff60be
commit c5c4bbfb6e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ func (fr *FileReference) EncodeMsgpack(enc *msgpack.Encoder) error {
} }
data[8] = historyData data[8] = historyData
} }
return nil
return enc.Encode(data)
} }
func (fr *FileReference) DecodeMsgpack(dec *msgpack.Decoder) error { func (fr *FileReference) DecodeMsgpack(dec *msgpack.Decoder) error {
mapLen, err := dec.DecodeMapLen() mapLen, err := dec.DecodeMapLen()