Remove return in Recipe::confirm (#2789)

This commit is contained in:
Casey Rodarmor 2025-06-24 00:15:15 -07:00 committed by GitHub
parent 1cd0ab309e
commit 4ed0a234f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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, ()> {