Skip to content

Commit 43dff46

Browse files
committed
prettify state json before saving to disk
1 parent b92109d commit 43dff46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/state.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let refresh_pipeline_status (state : State_t.state) ~pipeline ~(branches : Githu
1515
let log = Log.from "state"
1616

1717
let save state path =
18-
let data = State_j.string_of_state state in
18+
let data = State_j.string_of_state state |> Yojson.Basic.from_string |> Yojson.Basic.pretty_to_string in
1919
match write_to_local_file ~data path with
2020
| Ok () -> Lwt.return @@ Ok ()
2121
| Error e ->

0 commit comments

Comments
 (0)