refactor(command_parser): remove the Empty token, we don't need it

This commit is contained in:
dusk 2025-01-24 04:13:06 +09:00
parent 071db3d6d6
commit 92276a720e
No known key found for this signature in database
4 changed files with 7 additions and 21 deletions

View file

@ -30,7 +30,7 @@ impl Command {
parse_flags_before = idx;
was_parameter = true;
}
Token::Empty | Token::Value { .. } => {
Token::Value { .. } => {
if was_parameter {
break;
}