Skip to content

Commit

Permalink
Removed dead code for RPAREN. (#560)
Browse files Browse the repository at this point in the history
This appears to be dead code, as we have just checked for RPAREN previously
  • Loading branch information
haberman authored Jul 25, 2024
1 parent 7000200 commit 42030a7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions syntax/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,6 @@ func (p *parser) parseLoadStmt() *LoadStmt {
Name: lit.Value.(string),
})

case RPAREN:
p.in.errorf(p.in.pos, "trailing comma in load statement")

default:
p.in.errorf(p.in.pos, `load operand must be "name" or localname="name" (got %#v)`, p.tok)
}
Expand Down

0 comments on commit 42030a7

Please sign in to comment.