Merge pull request 'test: merge declaration flagged by staticcheck' (#127) from fix/lint-platform-sso into main
This commit was merged in pull request #127.
This commit is contained in:
commit
b82ed264f9
1 file changed
+1
-2
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user