]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/internal/fips/check: remove unreachable return
authorTim King <taking@google.com>
Fri, 15 Nov 2024 23:53:13 +0000 (15:53 -0800)
committerGopher Robot <gobot@golang.org>
Sun, 17 Nov 2024 14:28:31 +0000 (14:28 +0000)
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>

src/crypto/internal/fips/check/check.go

index 9d1a88d78e1a4caacc1e227c6fcf814b018c78ac..86801c433292713ab63dd1fda5fc064376841936 100644 (file)
@@ -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 {