mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-19 19:08:08 +00:00
ui: remove redundant .to_lowercase() from prompt_yes_no()
This commit is contained in:
parent
63c4de3cf7
commit
2839922e57
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ impl Ui {
|
|||
&["y", "n", "yes", "no", "Yes", "No", "YES", "NO"],
|
||||
default_choice,
|
||||
)?;
|
||||
Ok(choice.to_lowercase().starts_with(['y', 'Y']))
|
||||
Ok(choice.starts_with(['y', 'Y']))
|
||||
}
|
||||
|
||||
pub fn prompt_password(&mut self, prompt: &str) -> io::Result<String> {
|
||||
|
|
Loading…
Reference in a new issue