From 706a5a8b473a1cdc4838599fb71651eb8a801032 Mon Sep 17 00:00:00 2001 From: texuf Date: Tue, 19 Jul 2022 14:48:25 -0700 Subject: [PATCH] Fix lint errors https://github.com/HereNotThere/dendrite/runs/7417009281?check_suite_focus=true --- clientapi/auth/login_publickey_ethereum_test.go | 2 +- clientapi/routing/register_publickey_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clientapi/auth/login_publickey_ethereum_test.go b/clientapi/auth/login_publickey_ethereum_test.go index 12fae2654..73842f9a0 100644 --- a/clientapi/auth/login_publickey_ethereum_test.go +++ b/clientapi/auth/login_publickey_ethereum_test.go @@ -34,7 +34,7 @@ type loginContext struct { userInteractive *UserInteractive } -func createLoginContext(t *testing.T) *loginContext { +func createLoginContext(_ *testing.T) *loginContext { chainIds := []int{4} cfg := &config.ClientAPI{ diff --git a/clientapi/routing/register_publickey_test.go b/clientapi/routing/register_publickey_test.go index 688769e89..c51ee1846 100644 --- a/clientapi/routing/register_publickey_test.go +++ b/clientapi/routing/register_publickey_test.go @@ -40,7 +40,7 @@ type registerContext struct { userInteractive *auth.UserInteractive } -func createRegisterContext(t *testing.T) *registerContext { +func createRegisterContext(_ *testing.T) *registerContext { chainIds := []int{4} cfg := &config.ClientAPI{ @@ -173,8 +173,8 @@ func (*fakePublicKeyUserApi) QueryLoginToken(ctx context.Context, req *uapi.Quer func newRegistrationSession( t *testing.T, userId string, - cfg *config.ClientAPI, - userInteractive *auth.UserInteractive, + _ *config.ClientAPI, + _ *auth.UserInteractive, userAPI *fakePublicKeyUserApi, ) string { body := fmt.Sprintf(`{