From 95ce4f5c1eed36ff25fb7fce2a4757b4a863e4c9 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Tue, 17 Apr 2018 23:20:33 +0200 Subject: [PATCH] refactor: minor fixes. --- middlewares/errorpages/error_pages_test.go | 2 +- provider/acme/account.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/middlewares/errorpages/error_pages_test.go b/middlewares/errorpages/error_pages_test.go index 4700e5b3b..0ff70689b 100644 --- a/middlewares/errorpages/error_pages_test.go +++ b/middlewares/errorpages/error_pages_test.go @@ -239,7 +239,7 @@ func TestHandlerOldWay(t *testing.T) { func TestHandlerOldWayIntegration(t *testing.T) { errorPagesServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - if r.URL.RequestURI() == "/"+strconv.Itoa(503) { + if r.URL.RequestURI() == "/503" { fmt.Fprintln(w, "My 503 page.") } else { fmt.Fprintln(w, "Test Server") diff --git a/provider/acme/account.go b/provider/acme/account.go index e57607229..4af3ad0b8 100644 --- a/provider/acme/account.go +++ b/provider/acme/account.go @@ -19,7 +19,7 @@ type Account struct { const ( // RegistrationURLPathV1Regexp is a regexp which match ACME registration URL in the V1 format - RegistrationURLPathV1Regexp string = `^.*/acme/reg/\d+$` + RegistrationURLPathV1Regexp = `^.*/acme/reg/\d+$` ) // NewAccount creates an account