Skip to content

Commit

Permalink
remove unsafe code block
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Dec 7, 2024
1 parent d812f0a commit 711796a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,10 @@ pub fn handle_cli_args() -> Task<Message> {
std::process::exit(0);
} else {
// truncate logs file
unsafe {
std::fs::OpenOptions::new()
.write(true)
.truncate(true)
.open(logs_file)
.unwrap_unchecked();
}
let _ = std::fs::OpenOptions::new()
.write(true)
.truncate(true)
.open(logs_file);
}
}

Expand Down

0 comments on commit 711796a

Please sign in to comment.