Skip to content

Commit

Permalink
style: remove unnecessary .unwrap() and propagate the error.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Jan 17, 2025
1 parent bccf19e commit fc9617d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/walk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl<'a> Walker<'a> {
builder = builder.max_depth(max_depth + 1);
}

for entry in builder.build().unwrap() {
for entry in builder.build()? {
let entry = match entry {
Ok(e) => e,
Err(err) => {
Expand Down

0 comments on commit fc9617d

Please sign in to comment.