fix json marshaling bug for statediff

This commit is contained in:
sawka
2022-11-27 14:16:25 -08:00
parent 4481cddadc
commit eb3cf80329
+1 -1
View File
@@ -88,7 +88,7 @@ func (sdiff ShellStateDiff) MarshalJSON() ([]byte, error) {
binpack.PackValue(&buf, sdiff.AliasesDiff)
binpack.PackValue(&buf, sdiff.FuncsDiff)
binpack.PackValue(&buf, []byte(sdiff.Error))
return buf.Bytes(), nil
return json.Marshal(buf.Bytes())
}
func (sdiff *ShellStateDiff) UnmarshalJSON(jsonBytes []byte) error {