]> Cypherpunks repositories - gostls13.git/commit
math/big: remove "else" from if with block that ends with return
authorisharipo <iskander.sharipov@intel.com>
Tue, 3 Apr 2018 19:33:03 +0000 (22:33 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 3 Apr 2018 19:55:04 +0000 (19:55 +0000)
commit02952ad7a84846524a15f4e2b0db8083f74ce836
tree6e05eb56ae2b3b2f6a509cc39a6d11ca8cb36fc4
parent00c8e149b67da589f82b7a19df9735e4f03ec5ae
math/big: remove "else" from if with block that ends with return

That "else" was needed due to gc DCE limitations.
Now it's not the case and we can avoid go lint complaints.
(See #23521 and https://golang.org/cl/91056.)

There is inlining test for bigEndianWord, so if test
is passing, no performance regression should occur.

Change-Id: Id84d63f361e5e51a52293904ff042966c83c16e9
Reviewed-on: https://go-review.googlesource.com/104555
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
src/math/big/nat.go