Implement No as default (when only Enter is pressed)

This commit is contained in:
gitlab.com/pepa65 2024-10-30 14:02:03 +07:00
parent 4ed6a1473a
commit c54b8d001b

View file

@ -35,10 +35,7 @@ pub async fn confirm() -> Result<(), BinstallError> {
match input.as_str().trim() { match input.as_str().trim() {
"yes" | "y" | "YES" | "Y" => break true, "yes" | "y" | "YES" | "Y" => break true,
"no" | "n" | "NO" | "N" | "" => break false, _ => => break false,
_ => {
input.clear();
continue;
} }
} }
}; };