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