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

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;