mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix json marshaling bug for statediff
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user