Skip to content

Commit

Permalink
Make it delete JSON history after converting
Browse files Browse the repository at this point in the history
  • Loading branch information
starscouts committed Jul 1, 2024
1 parent b4779d9 commit f35c422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statusng/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl App {
let history = fs::read_to_string("./history.json")?;
let history: History = serde_json::from_str(&history)?;
fs::write("./history.dat", history.into_bytes())?;
//fs::remove_file("./history.json")?;
fs::remove_file("./history.json")?;
}

let history = fs::read("./history.dat")?;
Expand Down

0 comments on commit f35c422

Please sign in to comment.