From 8f7006a6dff175c7445a245612b8aa028509a15c Mon Sep 17 00:00:00 2001 From: Jes Cok Date: Thu, 16 Nov 2023 07:06:03 +0000 Subject: runtime: gofmt -w -s Change-Id: I2eac85b502df9851df294f8d46c7845f635dde9b GitHub-Last-Rev: 3c8382442a0fadb355be9e4656942c2e03db2391 GitHub-Pull-Request: golang/go#64198 Reviewed-on: https://go-review.googlesource.com/c/go/+/542697 Run-TryBot: Jes Cok LUCI-TryBot-Result: Go LUCI TryBot-Result: Gopher Robot Reviewed-by: Michael Knyszek Reviewed-by: Michael Pratt --- src/runtime/testdata/testwinlibthrow/main.go | 38 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/runtime/testdata/testwinlibthrow') diff --git a/src/runtime/testdata/testwinlibthrow/main.go b/src/runtime/testdata/testwinlibthrow/main.go index ce0c92f252..493e1e11d5 100644 --- a/src/runtime/testdata/testwinlibthrow/main.go +++ b/src/runtime/testdata/testwinlibthrow/main.go @@ -1,19 +1,19 @@ -package main - -import ( - "os" - "syscall" -) - -func main() { - dll := syscall.MustLoadDLL("veh.dll") - RaiseNoExcept := dll.MustFindProc("RaiseNoExcept") - ThreadRaiseNoExcept := dll.MustFindProc("ThreadRaiseNoExcept") - - thread := len(os.Args) > 1 && os.Args[1] == "thread" - if !thread { - RaiseNoExcept.Call() - } else { - ThreadRaiseNoExcept.Call() - } -} +package main + +import ( + "os" + "syscall" +) + +func main() { + dll := syscall.MustLoadDLL("veh.dll") + RaiseNoExcept := dll.MustFindProc("RaiseNoExcept") + ThreadRaiseNoExcept := dll.MustFindProc("ThreadRaiseNoExcept") + + thread := len(os.Args) > 1 && os.Args[1] == "thread" + if !thread { + RaiseNoExcept.Call() + } else { + ThreadRaiseNoExcept.Call() + } +} -- cgit v1.3-5-g9baa