mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
Minor simplification in tokenizer
This commit is contained in:
parent
dfd08a1a2c
commit
861feb7b46
|
@ -603,7 +603,7 @@ impl Tokenizer {
|
|||
1,
|
||||
);
|
||||
}
|
||||
if paran_offsets.is_empty() {
|
||||
if paran_offsets.pop().is_none() {
|
||||
return self.call_error(
|
||||
TokenizerError::closing_unopened_subshell,
|
||||
self.token_cursor,
|
||||
|
@ -612,7 +612,6 @@ impl Tokenizer {
|
|||
1,
|
||||
);
|
||||
}
|
||||
paran_offsets.pop();
|
||||
if paran_offsets.is_empty() {
|
||||
mode &= !TOK_MODE_SUBSHELL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user