From d8d0bb4cfcac2f8fd69c908ddf9b1e3cea7765c0 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Thu, 1 Dec 2022 13:24:50 +0100 Subject: [PATCH] Linter fixes --- appservice/appservice_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/appservice/appservice_test.go b/appservice/appservice_test.go index fa8a8961f..51a084c27 100644 --- a/appservice/appservice_test.go +++ b/appservice/appservice_test.go @@ -102,7 +102,7 @@ func TestAppserviceInternalAPI(t *testing.T) { asAPI := NewInternalAPI(base, usrAPI, rsAPI) // The test cases to run - runCases := func(t *testing.T, testAPI api.AppServiceInternalAPI, http bool) { + runCases := func(t *testing.T, testAPI api.AppServiceInternalAPI) { t.Run("UserIDExists", func(t *testing.T) { testUserIDExists(t, testAPI, "@as-testing:test", true) testUserIDExists(t, testAPI, "@as1-testing:test", false) @@ -138,15 +138,16 @@ func TestAppserviceInternalAPI(t *testing.T) { apiURL, cancel := test.ListenAndServe(t, router, false) defer cancel() - asAPI, err := inthttp.NewAppserviceClient(apiURL, &http.Client{}) + var err error + asAPI, err = inthttp.NewAppserviceClient(apiURL, &http.Client{}) if err != nil { t.Fatalf("failed to create HTTP client: %s", err) } - runCases(t, asAPI, true) + runCases(t, asAPI) }) t.Run("Monolith", func(t *testing.T) { - runCases(t, asAPI, false) + runCases(t, asAPI) }) }