From: Tim King Date: Fri, 15 Nov 2024 23:53:13 +0000 (-0800) Subject: crypto/internal/fips/check: remove unreachable return X-Git-Tag: go1.24rc1~360 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5ebb4e282e72ac14d20a845601921739a072e953;p=gostls13.git crypto/internal/fips/check: remove unreachable return return statement is immediately after a panic. This is unreachable code and vet complains. Change-Id: I1e483a552b0d1d543414c1e173c1140aa32b5b26 Reviewed-on: https://go-review.googlesource.com/c/go/+/628555 LUCI-TryBot-Result: Go LUCI Reviewed-by: Filippo Valsorda Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov --- diff --git a/src/crypto/internal/fips/check/check.go b/src/crypto/internal/fips/check/check.go index 9d1a88d78e..86801c4332 100644 --- a/src/crypto/internal/fips/check/check.go +++ b/src/crypto/internal/fips/check/check.go @@ -86,7 +86,6 @@ func init() { // false negatives. For now, FIPS+ASAN doesn't need to work. // If this is made to work, also re-enable the test in check_test.go. panic("fips140: cannot verify in asan mode") - return } switch v {