Make sigil stripping from recipe lines less incomprehensible (#1812)

This commit is contained in:
Casey Rodarmor 2024-01-01 17:50:18 -08:00 committed by GitHub
parent 87925f293e
commit 1bfed56e5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,13 +195,9 @@ impl<'src, D> Recipe<'src, D> {
let mut command = evaluated.as_str();
if quiet_command {
command = &command[1..];
}
let sigils = usize::from(infallible_command) + usize::from(quiet_command);
if infallible_command {
command = &command[1..];
}
command = &command[sigils..];
if command.is_empty() {
continue;