Skip to content
Snippets Groups Projects
Commit 311b9a9b authored by ale's avatar ale
Browse files

Fix an error in unmarshalRecordRecursively

A refactor left a spurious array slicing.
parent ed3b7ee5
No related branches found
No related tags found
No related merge requests found
Pipeline #66530 passed
......@@ -88,7 +88,7 @@ func unmarshalRecordRecursively(record []byte) (map[string]any, error) {
s = strings.TrimPrefix(s, "@cee:")
if strings.HasPrefix(s, "{") {
var m2 map[string]any
if err := json.Unmarshal([]byte(s[5:]), &m2); err == nil {
if err := json.NewDecoder(strings.NewReader(s)).Decode(&m2); err == nil {
m["message"] = m2
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment