diff options
| author | Adhyan <adhyanpatel@gmail.com> | 2024-09-03 14:40:24 -0600 |
|---|---|---|
| committer | Adhyan <adhyanpatel@gmail.com> | 2024-09-03 14:40:24 -0600 |
| commit | 948e16e3c783bff20736b356d9f961af3bb00784 (patch) | |
| tree | 9677b5dc1dff7409c98064a248b4c60ec3a6aeaa /src | |
| parent | 312556147405992e5f7e43a945bf2f6795abc7f4 (diff) | |
moved continue to end of if-block
Diffstat (limited to 'src')
| -rw-r--r-- | src/list.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/list.rs b/src/list.rs index 069cdda..dc224f0 100644 --- a/src/list.rs +++ b/src/list.rs @@ -1,4 +1,4 @@ -use anyhow::{Context, Ok, Result}; +use anyhow::{Context, Result}; use crossterm::{ cursor, event::{ @@ -40,7 +40,6 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()> KeyCode::Esc | KeyCode::Enter => { is_searching = false; list_state.search_query.clear(); - continue; } KeyCode::Char(k) => { list_state.search_query.push(k); @@ -51,7 +50,6 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()> list_state.select_if_matches_search_query(); list_state.draw(stdout)?; - continue; } KeyCode::Backspace => { list_state.search_query.pop(); @@ -62,12 +60,10 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()> list_state.select_if_matches_search_query(); list_state.draw(stdout)?; - continue; - } - _ => { - continue; } + _ => {} } + continue; } match key.code { |
