Skip to content

Commit

Permalink
Clean up temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoheiu committed Jan 11, 2025
1 parent 316179f commit 52502b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,8 @@ impl State {
Err(e)
} else {
let new_names = fs::read_to_string(&path)?;
// clean up temp file
path.close()?;
let new_names: Vec<&str> = new_names
.split('\n')
.filter(|name| !name.is_empty())
Expand Down

0 comments on commit 52502b7

Please sign in to comment.