clippy: Fix collapsible_if warnings (#31852)

This commit is contained in:
Oluwatobi Sofela 2024-03-25 14:55:45 +01:00 committed by GitHub
parent 3d10dbae32
commit a53632c0e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 85 additions and 95 deletions

View file

@ -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;
}
}