]> Cypherpunks repositories - gostls13.git/commit
go/parser: simplify expectSemi
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Mon, 15 Sep 2025 17:37:04 +0000 (19:37 +0200)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Wed, 17 Sep 2025 05:22:30 +0000 (22:22 -0700)
commit9df1a289ac64451042f6f14b7229ae5cd2217352
treef586ad49ababf2245aa72c6d09a8526f8bccc8d3
parent72ba117bda55dc31fcc7bb6e77cb24425b826b93
go/parser: simplify expectSemi

Move the outer if statement, directly into the switch.

Change-Id: I6a6a6964ff15dbcda4f4c9ae1c15423adbfb0ae5
Reviewed-on: https://go-review.googlesource.com/c/go/+/703835
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/go/parser/parser.go