diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-25 14:55:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-25 13:55:45 +0000 |
commit | a53632c0e5fe223ca1c39a088ee46f49bb355243 (patch) | |
tree | c3c2e2a4e3667de288d95df9d89adc1c6694b538 /components/script/dom/window.rs | |
parent | 3d10dbae32149515dc839d69bc2ba14f12b45251 (diff) | |
download | servo-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.rs | 6 |
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; } } |