mirror of
https://github.com/casey/just.git
synced 2024-11-23 02:44:56 +03:00
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();
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user