mirror of
https://github.com/casey/just.git
synced 2025-08-04 23:17:59 +00:00
Remove return
in Recipe::confirm
(#2789)
This commit is contained in:
parent
1cd0ab309e
commit
4ed0a234f3
1 changed files with 3 additions and 2 deletions
|
@ -77,9 +77,10 @@ impl<'src, D> Recipe<'src, D> {
|
|||
.read_line(&mut line)
|
||||
.map_err(|io_error| Error::GetConfirmation { io_error })?;
|
||||
let line = line.trim().to_lowercase();
|
||||
return Ok(line == "y" || line == "yes");
|
||||
Ok(line == "y" || line == "yes")
|
||||
} else {
|
||||
Ok(true)
|
||||
}
|
||||
Ok(true)
|
||||
}
|
||||
|
||||
pub(crate) fn check_can_be_default_recipe(&self) -> RunResult<'src, ()> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue