flip boolean block (clippy::if_not_else)

This commit is contained in:
Daniel Eades 2024-04-15 20:49:03 +01:00 • committed by Jeremy Soller
parent 34cf7bf76a
commit ec5c2a1991

View file

@ -1201,10 +1201,10 @@ impl App {
hold: profile.hold, hold: profile.hold,
env: HashMap::new(), env: HashMap::new(),
}; };
let tab_title_override = if !profile.tab_title.is_empty() { let tab_title_override = if profile.tab_title.is_empty() {
Some(profile.tab_title.clone())
} else {
None None
} else {
Some(profile.tab_title.clone())
}; };
(options, tab_title_override) (options, tab_title_override)
} }
@ -1455,10 +1455,10 @@ impl Application for App {
} }
fn on_context_drawer(&mut self) -> Command<Message> { fn on_context_drawer(&mut self) -> Command<Message> {
if !self.core.window.show_context { if self.core.window.show_context {
self.update_focus()
} else {
Command::none() Command::none()
} else {
self.update_focus()
} }
} }