mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Minor simplification in tokenizer
This commit is contained in:
parent
dfd08a1a2c
commit
861feb7b46
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue