Skip to content

Commit

Permalink
go/parser: simplify code (cleanup)
Browse files Browse the repository at this point in the history
Change-Id: I0c8823b9c3c12f0f581b24db6a7aa5a0cd913224
Reviewed-on: https://go-review.googlesource.com/c/go/+/407537
Auto-Submit: Robert Griesemer <[email protected]>
Run-TryBot: Robert Griesemer <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>
  • Loading branch information
ideapark authored and gopherbot committed Oct 11, 2022
1 parent 0f64a49 commit f1e50a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/go/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1307,8 +1307,7 @@ func (p *parser) tryIdentOrType() ast.Expr {
case token.MUL:
return p.parsePointerType()
case token.FUNC:
typ := p.parseFuncType()
return typ
return p.parseFuncType()
case token.INTERFACE:
return p.parseInterfaceType()
case token.MAP:
Expand Down

0 comments on commit f1e50a1

Please sign in to comment.