diff options
author | Danil Timerbulatov <timerbulatov.danila@gmail.com> | 2023-12-08 00:17:19 +0300 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-12-14 17:22:18 +0000 |
commit | 527829a7cba4ded29f98fae97f8bab9de247d5fe (patch) | |
tree | d98b9dcc30baa3846a6f69444d8de62515e4a2f0 /test | |
parent | 5f48662c5aab0f8c594b77ca183687264121f6b5 (diff) | |
download | go-527829a7cba4ded29f98fae97f8bab9de247d5fe.tar.gz go-527829a7cba4ded29f98fae97f8bab9de247d5fe.zip |
all: remove newline characters after return statements
This commit is aimed at improving the readability and consistency
of the code base. Extraneous newline characters were present after
some return statements, creating unnecessary separation in the code.
Fixes #64610
Change-Id: Ic1b05bf11761c4dff22691c2f1c3755f66d341f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/548316
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/codegen/bits.go | 2 | ||||
-rw-r--r-- | test/codegen/memcombine.go | 1 | ||||
-rw-r--r-- | test/codegen/noextend.go | 1 | ||||
-rw-r--r-- | test/escape2.go | 1 | ||||
-rw-r--r-- | test/escape2n.go | 1 | ||||
-rw-r--r-- | test/fixedbugs/issue32680b.go | 1 | ||||
-rw-r--r-- | test/fixedbugs/issue56923.go | 1 | ||||
-rw-r--r-- | test/typeparam/issue50485.dir/a.go | 1 | ||||
-rw-r--r-- | test/typeparam/issue51925.go | 1 |
9 files changed, 0 insertions, 10 deletions
diff --git a/test/codegen/bits.go b/test/codegen/bits.go index 67daf12d62..4b6c8b94b8 100644 --- a/test/codegen/bits.go +++ b/test/codegen/bits.go @@ -382,7 +382,6 @@ func signextendAndMask8to64(a int8) (s, z uint64) { // ppc64x: -"MOVB", "ANDCC\t[$]247," z = uint64(uint8(a)) & 0x3F7 return - } // Verify zero-extended values are not sign-extended under a bit mask (#61297) @@ -392,7 +391,6 @@ func zeroextendAndMask8to64(a int8, b int16) (x, y uint64) { // ppc64x: -"MOVH\t", -"ANDCC", "MOVHZ" y = uint64(b) & 0xFFFF return - } // Verify rotate and mask instructions, and further simplified instructions for small types diff --git a/test/codegen/memcombine.go b/test/codegen/memcombine.go index db5c81f905..6d6c33d947 100644 --- a/test/codegen/memcombine.go +++ b/test/codegen/memcombine.go @@ -348,7 +348,6 @@ func reassoc_load_uint32(b []byte) uint32 { func extrashift_load_uint32(b []byte) uint32 { // amd64:`MOVL\s\([A-Z]+\)`,`SHLL\s[$]2`,-`MOV[BW]`,-`OR` return uint32(b[0])<<2 | uint32(b[1])<<10 | uint32(b[2])<<18 | uint32(b[3])<<26 - } func outoforder_load_uint32(b []byte) uint32 { diff --git a/test/codegen/noextend.go b/test/codegen/noextend.go index 98ad0ece89..193f75b092 100644 --- a/test/codegen/noextend.go +++ b/test/codegen/noextend.go @@ -277,7 +277,6 @@ func shouldSignEXT(x int) int64 { ret += int64(int8(x & 0x1100000000000011)) return ret - } func noIntermediateExtension(a, b, c uint32) uint32 { diff --git a/test/escape2.go b/test/escape2.go index 99f85914a3..3e5d11f88e 100644 --- a/test/escape2.go +++ b/test/escape2.go @@ -397,7 +397,6 @@ func exprsw(i *int) *int { // ERROR "leaking param: i to result ~r0 level=0$" return nil } return nil - } // assigning to an array element is like assigning to the array diff --git a/test/escape2n.go b/test/escape2n.go index 350be65202..2613152150 100644 --- a/test/escape2n.go +++ b/test/escape2n.go @@ -397,7 +397,6 @@ func exprsw(i *int) *int { // ERROR "leaking param: i to result ~r0 level=0$" return nil } return nil - } // assigning to an array element is like assigning to the array diff --git a/test/fixedbugs/issue32680b.go b/test/fixedbugs/issue32680b.go index 61e531701a..09bc3a9ce0 100644 --- a/test/fixedbugs/issue32680b.go +++ b/test/fixedbugs/issue32680b.go @@ -12,5 +12,4 @@ func hashBytesRaw(b0, b1, b2, b3, b7 byte) uint64 { func doStuff(data []byte) uint64 { return hashBytesRaw(data[0], data[1], data[2], data[3], data[7]) - } diff --git a/test/fixedbugs/issue56923.go b/test/fixedbugs/issue56923.go index 700a1046a9..7cc9494b76 100644 --- a/test/fixedbugs/issue56923.go +++ b/test/fixedbugs/issue56923.go @@ -18,7 +18,6 @@ func (r EqFunc[T]) Eqv(a, b T) bool { func New[T any](f func(a, b T) bool) Eq[T] { return EqFunc[T](f) - } func Equal(a, b []byte) bool { diff --git a/test/typeparam/issue50485.dir/a.go b/test/typeparam/issue50485.dir/a.go index 3a7c71a711..97cf4d2549 100644 --- a/test/typeparam/issue50485.dir/a.go +++ b/test/typeparam/issue50485.dir/a.go @@ -219,7 +219,6 @@ func (r ApplicativeFunctor2[H, HT, A1, A2, R]) ApOption(a Option[A1]) Applicativ func (r ApplicativeFunctor2[H, HT, A1, A2, R]) Ap(a A1) ApplicativeFunctor1[Cons[A1, H], A1, A2, R] { return r.ApOption(Some(a)) - } func Applicative2[A1, A2, R any](fn Func2[A1, A2, R]) ApplicativeFunctor2[Nil, Nil, A1, A2, R] { diff --git a/test/typeparam/issue51925.go b/test/typeparam/issue51925.go index 0a385acd17..abebf67766 100644 --- a/test/typeparam/issue51925.go +++ b/test/typeparam/issue51925.go @@ -25,7 +25,6 @@ func min[T IntLike](x, y T) T { return x } return y - } // Min returns the minimum element of `nums`. |