Skip to content

Commit 058e2a5

Browse files
committed
fix: satisfy clippy for inspector foreground lookup
1 parent 015e943 commit 058e2a5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

server/src/api/routes.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4111,9 +4111,8 @@ async fn inspector_session_for_state(
41114111
}
41124112

41134113
async fn inspector_frontmost_process_identifier(state: &AppState, udid: &str) -> Option<i64> {
4114-
match frontmost_process_identifier(state, udid).await {
4115-
Ok(Some(process_identifier)) => return Some(process_identifier),
4116-
Ok(None) | Err(_) => {}
4114+
if let Ok(Some(process_identifier)) = frontmost_process_identifier(state, udid).await {
4115+
return Some(process_identifier);
41174116
}
41184117

41194118
foreground_app_for_simulator_with_cache_ttl(state, udid, INSPECTOR_FOREGROUND_APP_CACHE_TTL)

0 commit comments

Comments
 (0)