moved continue to end of if-block

This commit is contained in:
Adhyan 2024-09-03 14:40:24 -06:00
parent 3125561474
commit 948e16e3c7

View file

@ -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 {