test: merge declaration flagged by staticcheck #127

Merged
Sebi merged 1 commits from fix/lint-platform-sso into main 2026-11-23 16:49:59 +00:00
Showing only changes of commit ef759826b7 - Show all commits
+1 -2
View File
@@ -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"))