refactor(parser): remove duplicated code

This commit is contained in:
Boshen 2023-11-29 18:23:32 +08:00
parent 3a4261ff5d
commit 9842be4461
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -24,7 +24,6 @@ impl<'a> Parser<'a> {
arguments.push(self.parse_assignment_expression_base()?);
}
self.ctx = self.ctx.and_in(has_in);
self.ctx = self.ctx.and_in(has_in);
self.bump(Kind::Comma);
self.expect(Kind::RParen)?;