diff --git a/src/components/commit.rs b/src/components/commit.rs index 4cea6f4b..875d0a35 100644 --- a/src/components/commit.rs +++ b/src/components/commit.rs @@ -531,7 +531,6 @@ impl Component for CommitComponent { self.input.set_text(msg); self.commit_msg_history_idx += 1; } - } else { } // stop key event propagation return Ok(EventState::Consumed); diff --git a/src/components/help.rs b/src/components/help.rs index f2c45e3d..e6a1c8eb 100644 --- a/src/components/help.rs +++ b/src/components/help.rs @@ -135,7 +135,6 @@ impl Component for HelpComponent { self.move_selection(true); } else if key_match(e, self.key_config.keys.move_up) { self.move_selection(false); - } else { } }