From a05b67dc4b2e912153a4a4c0f1c4c39ff3bc86af Mon Sep 17 00:00:00 2001 From: James Munnelly Date: Thu, 26 Oct 2017 21:53:02 +0100 Subject: [PATCH] Error if existing presented key and expected key do not match --- pkg/issuer/acme/http/http.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/issuer/acme/http/http.go b/pkg/issuer/acme/http/http.go index 838a423d8..ed2186cbb 100644 --- a/pkg/issuer/acme/http/http.go +++ b/pkg/issuer/acme/http/http.go @@ -465,9 +465,7 @@ func testReachability(ctx context.Context, domain, path, key string) error { } if string(presentedKey) != key { - if err != nil { - return fmt.Errorf("presented key (%s) did not match expected (%s)", presentedKey, key) - } + return fmt.Errorf("presented key (%s) did not match expected (%s)", presentedKey, key) } return nil