style: Addressed style comments left by copilot reviewer
This commit is contained in:
+1
-1
@@ -21,8 +21,8 @@ pub fn read_single_key(valid_chars: &[char], default: char, prompt: &str) -> Res
|
||||
break Err(anyhow::anyhow!("Interrupted"));
|
||||
}
|
||||
KeyCode::Char(c) if valid_chars.contains(&c) => {
|
||||
break Ok(c);
|
||||
// Invalid character, continue loop
|
||||
break Ok(c);
|
||||
}
|
||||
KeyCode::Enter => {
|
||||
break Ok(default);
|
||||
|
||||
Reference in New Issue
Block a user