Make sigil stripping from recipe lines less incomprehensible (#1812)
This commit is contained in:
parent
87925f293e
commit
1bfed56e5e
@ -195,13 +195,9 @@ impl<'src, D> Recipe<'src, D> {
|
|||||||
|
|
||||||
let mut command = evaluated.as_str();
|
let mut command = evaluated.as_str();
|
||||||
|
|
||||||
if quiet_command {
|
let sigils = usize::from(infallible_command) + usize::from(quiet_command);
|
||||||
command = &command[1..];
|
|
||||||
}
|
|
||||||
|
|
||||||
if infallible_command {
|
command = &command[sigils..];
|
||||||
command = &command[1..];
|
|
||||||
}
|
|
||||||
|
|
||||||
if command.is_empty() {
|
if command.is_empty() {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user