Skip to content

Commit

Permalink
fix: avoid unwrapping, if there's an error parsing just set it to None
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-sentry committed Nov 27, 2024
1 parent 0688cc2 commit 2443547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/junit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn populate(
.time
.as_deref()
.or(testsuite_time)
.map(|t| t.parse().unwrap());
.and_then(|t| t.parse().ok());

let mut t = Testrun {
name,
Expand Down

0 comments on commit 2443547

Please sign in to comment.