Skip to content

Commit

Permalink
fix: Ignore directory creation result
Browse files Browse the repository at this point in the history
  • Loading branch information
MrExplode committed Nov 2, 2023
1 parent 094d985 commit b500fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jira.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async fn handle(info: web::Query<Info>, body: String, clients: Data<Arc<Clients>
}

fn log_request(data: &String) -> std::io::Result<()> {
std::fs::create_dir_all(Path::new("requests/"))?;
let _ = std::fs::create_dir_all(Path::new("requests/"));
let mut file = File::create(format!("requests/request_{}.json", Utc::now().format("%m-%d_%H-%M-%S")))?;
file.write_all(data.as_bytes())?;
Ok(())
Expand Down

0 comments on commit b500fa1

Please sign in to comment.