diff --git a/internal/api/platform_sso_test.go b/internal/api/platform_sso_test.go index 0c93fd9..6837cfc 100644 --- a/internal/api/platform_sso_test.go +++ b/internal/api/platform_sso_test.go @@ -18,8 +18,7 @@ import ( // fakeGitHub answers like GitHub's OAuth and REST API for one user. func fakeGitHub(t *testing.T, id int64, email string, verified bool) *httptest.Server { - var srv *httptest.Server - srv = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case "/login/oauth/authorize": back, _ := url.Parse(r.URL.Query().Get("redirect_uri"))