Skip to content

Commit

Permalink
Make sigil stripping from recipe lines less incomprehensible (#1812)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jan 2, 2024
1 parent 87925f2 commit 1bfed56
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/recipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1bfed56

Please sign in to comment.