Skip to content

Commit 948e16e

Browse files
committed
moved continue to end of if-block
1 parent 3125561 commit 948e16e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/list.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anyhow::{Context, Ok, Result};
1+
use anyhow::{Context, Result};
22
use crossterm::{
33
cursor,
44
event::{
@@ -40,7 +40,6 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
4040
KeyCode::Esc | KeyCode::Enter => {
4141
is_searching = false;
4242
list_state.search_query.clear();
43-
continue;
4443
}
4544
KeyCode::Char(k) => {
4645
list_state.search_query.push(k);
@@ -51,7 +50,6 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
5150
list_state.select_if_matches_search_query();
5251

5352
list_state.draw(stdout)?;
54-
continue;
5553
}
5654
KeyCode::Backspace => {
5755
list_state.search_query.pop();
@@ -62,12 +60,10 @@ fn handle_list(app_state: &mut AppState, stdout: &mut StdoutLock) -> Result<()>
6260
list_state.select_if_matches_search_query();
6361

6462
list_state.draw(stdout)?;
65-
continue;
66-
}
67-
_ => {
68-
continue;
6963
}
64+
_ => {}
7065
}
66+
continue;
7167
}
7268

7369
match key.code {

0 commit comments

Comments
 (0)