]> Cypherpunks repositories - gostls13.git/commit
syscall: prevent redundant newline from empty $extraimports
authorAndy Pan <i@andypan.me>
Fri, 24 May 2024 02:07:54 +0000 (10:07 +0800)
committerGopher Robot <gobot@golang.org>
Fri, 24 May 2024 17:15:02 +0000 (17:15 +0000)
commit7bc7039a6a518ed43f6177763d584e354ebd4bd7
treee4156388ca8447886c40086b9be98d4e87abb4aa
parenta7f6da78d2c022b44b8d91f3ce7699ab1643968f
syscall: prevent redundant newline from empty $extraimports

Currently mksyscall script produces one redundant newline
when $extraimports is empty, leading to a gofmt warning
reported by "git codereview change".

Change-Id: I57b0fa040347375698973e777285deded16ab62e
Reviewed-on: https://go-review.googlesource.com/c/go/+/587877
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/syscall/mksyscall.pl