diff options
| author | Tim King <taking@google.com> | 2024-11-15 15:53:13 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-11-17 14:28:31 +0000 |
| commit | 5ebb4e282e72ac14d20a845601921739a072e953 (patch) | |
| tree | 73034604e2f218ab4955e548e9eb6ad97e887aab /src/crypto | |
| parent | 493edb29735fd2adf2087b32c60617dad11dc6e1 (diff) | |
| download | go-5ebb4e282e72ac14d20a845601921739a072e953.tar.xz | |
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/crypto')
| -rw-r--r-- | src/crypto/internal/fips/check/check.go | 1 |
1 files changed, 0 insertions, 1 deletions
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 { |
