mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-06 08:18:58 +00:00
Use Checkpoint::load() instead of manual file read and parse
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0a0f47b218
commit
c8a1693492
1 changed files with 1 additions and 5 deletions
|
|
@ -1031,11 +1031,7 @@ async fn run_from_branch(
|
|||
|
||||
/// Print the final stage output from the checkpoint, if available.
|
||||
fn print_final_output(logs_dir: &std::path::Path, styles: &Styles) {
|
||||
let checkpoint_path = logs_dir.join("checkpoint.json");
|
||||
let Ok(data) = std::fs::read_to_string(&checkpoint_path) else {
|
||||
return;
|
||||
};
|
||||
let Ok(checkpoint) = serde_json::from_str::<Checkpoint>(&data) else {
|
||||
let Ok(checkpoint) = Checkpoint::load(&logs_dir.join("checkpoint.json")) else {
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue