Remove some unnecessary invisible delimiter checks.

These seem to have no useful effect... they don't seem useful from a
code inspection point of view, and they affect anything in the test
suite.
This commit is contained in:
Nicholas Nethercote 2022-05-11 10:14:49 +10:00
parent bb398ca594
commit 3cd8e9866d
2 changed files with 2 additions and 5 deletions

View file

@ -2109,8 +2109,7 @@ impl<'a> Parser<'a> {
brace_depth -= 1;
continue;
}
} else if self.token == token::Eof || self.eat(&token::CloseDelim(Delimiter::Invisible))
{
} else if self.token == token::Eof {
return;
} else {
self.bump();