From 5ebb4e282e72ac14d20a845601921739a072e953 Mon Sep 17 00:00:00 2001 From: Tim King Date: Fri, 15 Nov 2024 15:53:13 -0800 Subject: [PATCH] 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 --- src/crypto/internal/fips/check/check.go | 1 - 1 file changed, 1 deletion(-) 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 { -- 2.48.1