From c8f6b4da30168075b03945a9675e73a527167b72 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 24 Jul 2024 19:09:23 -0700 Subject: [PATCH] Removed dead code for RPAREN. This appears to be dead code, as we have just checked for RPAREN previously --- syntax/parse.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/syntax/parse.go b/syntax/parse.go index 215e20d9..52bdb387 100644 --- a/syntax/parse.go +++ b/syntax/parse.go @@ -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) }