Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
darrell-roberts committed Nov 24, 2024
1 parent 8031139 commit 48117f5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cli/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,11 @@ pub fn parallel_parse(
.with_context(|| format!("Parsing failed: {:?}", dir_entry.path()))
});
match result {
Ok(parsed_data) => {
if let Some(parsed_data) = parsed_data {
tx.send(Ok(parsed_data)).unwrap();
}
Ok(Some(parsed_data)) => {
tx.send(Ok(parsed_data)).unwrap();
WalkState::Continue
}
Ok(None) => WalkState::Continue,
Err(err) => {
tx.send(Err(err)).unwrap();
WalkState::Quit
Expand Down

0 comments on commit 48117f5

Please sign in to comment.