Skip to content

Commit 29fbfc9

Browse files
committed
⚠️ fix: warning
1 parent f1c86d9 commit 29fbfc9

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

src/popups/conventional_commit.rs

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -743,25 +743,23 @@ impl Component for ConventionalCommitPopup {
743743
self.seleted_commit_type
744744
{
745745
self.validate_escape(commit_type);
746-
} else {
747-
if let Some(&commit) = self
748-
.query_results_type
749-
.get(self.selected_index)
750-
{
751-
self.seleted_commit_type = Some(commit);
752-
753-
#[cfg(feature = "gitmoji")]
754-
{
755-
self.next_step();
756-
757-
if commit.more_info().len() == 1 {
758-
self.validate_escape(commit);
759-
}
760-
}
761-
#[cfg(not(feature = "gitmoji"))]
762-
self.validate_escape(commit);
763-
}
764-
}
746+
} else if let Some(&commit) = self
747+
.query_results_type
748+
.get(self.selected_index)
749+
{
750+
self.seleted_commit_type = Some(commit);
751+
752+
#[cfg(feature = "gitmoji")]
753+
{
754+
self.next_step();
755+
756+
if commit.more_info().len() == 1 {
757+
self.validate_escape(commit);
758+
}
759+
}
760+
#[cfg(not(feature = "gitmoji"))]
761+
self.validate_escape(commit);
762+
}
765763
} else if key_match(
766764
key,
767765
self.key_config.keys.breaking,

0 commit comments

Comments
 (0)