Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
DQNEO committed May 25, 2020
1 parent bd9dfe2 commit d0def55
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1590,13 +1590,12 @@ func (p *parser) parseFuncSignature() (*Token, []*ExprVariable, []*Gtype) {
p.traceIn(__func__)
defer p.traceOut(__func__)

tok := p.readToken()
fnameToken := tok
fnameToken := p.readToken()
p.expect("(")

var params []*ExprVariable

tok = p.peekToken()
tok := p.peekToken()
if tok.isPunct(")") {
p.skip()
} else {
Expand Down

0 comments on commit d0def55

Please sign in to comment.