Skip to content

Commit d7cac97

Browse files
committed
combine error branches
1 parent e94354e commit d7cac97

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tools/tidy/src/x_version.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ pub fn check(bad: &mut bool) {
1414

1515
let (child, temp_child) = match (result, temp_result) {
1616
(Ok(child), Ok(temp_child)) => (child, temp_child),
17-
// what would it mean if the temp cmd error'd?
18-
(Ok(_child), Err(_e)) => todo!(),
19-
(Err(e), _) => match e.kind() {
17+
(Err(e), _) | (_, Err(e)) => match e.kind() {
2018
ErrorKind::NotFound => return,
2119
_ => return tidy_error!(bad, "failed to run `x`: {}", e),
2220
},

0 commit comments

Comments
 (0)