Skip to content

Commit 2bffe66

Browse files
dsh0416Copilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 97ce9c1 commit 2bffe66

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

crates/gdcef/src/webrender.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,8 +1212,10 @@ fn push_permission_request(
12121212
request_id,
12131213
});
12141214
});
1215-
if !queued && let Ok(mut pending) = pending_permission_requests.lock() {
1216-
pending.remove(&request_id);
1215+
if !queued {
1216+
if let Ok(mut pending) = pending_permission_requests.lock() {
1217+
pending.remove(&request_id);
1218+
}
12171219
}
12181220
}
12191221

0 commit comments

Comments
 (0)