File tree Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Expand file tree Collapse file tree 1 file changed +17
-19
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments