aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-25 14:55:45 +0100
committerGitHub <noreply@github.com>2024-03-25 13:55:45 +0000
commita53632c0e5fe223ca1c39a088ee46f49bb355243 (patch)
treec3c2e2a4e3667de288d95df9d89adc1c6694b538 /components/script/dom/window.rs
parent3d10dbae32149515dc839d69bc2ba14f12b45251 (diff)
downloadservo-a53632c0e5fe223ca1c39a088ee46f49bb355243.tar.gz
servo-a53632c0e5fe223ca1c39a088ee46f49bb355243.zip
clippy: Fix collapsible_if warnings (#31852)
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 0b4f0001292..d6c7687832f 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -2257,10 +2257,8 @@ impl Window {
// Step 4 and 5
let window_proxy = self.window_proxy();
if let Some(active) = window_proxy.currently_active() {
- if pipeline_id == active {
- if doc.is_prompting_or_unloading() {
- return;
- }
+ if pipeline_id == active && doc.is_prompting_or_unloading() {
+ return;
}
}