Skip to content

Commit

Permalink
Remove duplicate check.
Browse files Browse the repository at this point in the history
  • Loading branch information
01mf02 committed Jul 15, 2024
1 parent c077331 commit bfb52f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jaq-syn/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,7 @@ impl<'a> Parser<'a> {
Some(Token::Word(id)) if id.starts_with('$') => Term::Var(*id),
Some(Token::Word(id)) if id.starts_with('@') => {
let s = self.maybe(|p| match p.i.next() {
Some(Token::Str(_, parts, _)) if id.starts_with('@') => {
Some(p.str_parts(parts))
}
Some(Token::Str(_, parts, _)) => Some(p.str_parts(parts)),
_ => None,
});
match s {
Expand Down

0 comments on commit bfb52f1

Please sign in to comment.