Skip to content

Commit

Permalink
fixup: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Oct 29, 2024
1 parent b2f98f1 commit c0fdc47
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions talpid-core/src/split_tunnel/macos/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,18 @@ async fn has_full_disk_access_inner() -> Result<bool, Error> {
let mut stdout_lines = stdout.lines();

let mut find_err = tokio::spawn(async move {
loop {
tokio::select! {
Ok(Some(line)) = stderr_lines.next_line() => {
break !matches!(
parse_eslogger_error(&line),
Some(Error::NeedFullDiskPermissions),
);
}
Ok(Some(_)) = stdout_lines.next_line() => {
// Received output, but not an err
break true;
}
else => break true,
tokio::select! {
Ok(Some(line)) = stderr_lines.next_line() => {
!matches!(
parse_eslogger_error(&line),
Some(Error::NeedFullDiskPermissions),
)
}
Ok(Some(_)) = stdout_lines.next_line() => {
// Received output, but not an err
true
}
else => true,
}
});

Expand Down

0 comments on commit c0fdc47

Please sign in to comment.