From 85527fbda0640e92f022f50512caf12f50ec46ad Mon Sep 17 00:00:00 2001 From: MohitKS5 Date: Mon, 5 Mar 2018 22:10:18 +0530 Subject: [PATCH] fix lint errors --- .../matrix-org/dendrite/clientapi/routing/register.go | 4 ++-- .../clientapi/routing/user_interactive_auth_flow.go | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go index c18b6e667..d8a991aca 100755 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go @@ -202,8 +202,8 @@ func Register( // TODO: Handle loading of previous session parameters from database. // TODO: Handle mapping registrationRequest parameters into session parameters - - return HandleUserInteractiveFlow(req, r.userInteractiveFlowRequest, sessionID, cfg, accountDB, deviceDB, + + return HandleUserInteractiveFlow(req, r.userInteractiveFlowRequest, sessionID, cfg, userInteractiveResponse{ // passing the list of allowed Flows and Params cfg.Derived.Registration.Flows, diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/user_interactive_auth_flow.go b/src/github.com/matrix-org/dendrite/clientapi/routing/user_interactive_auth_flow.go index f29a9aad7..ce3ebd017 100755 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/user_interactive_auth_flow.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/user_interactive_auth_flow.go @@ -247,9 +247,8 @@ func validateApplicationService( return matchedApplicationService.ID, nil } -// handleUIAAFlow will direct and complete UIAA flow stages -// that the client has requested. -func HandleUserInteractiveFlow ( +// HandleUserInteractiveFlow will direct and complete UIAA flow stages that the client has requested. +func HandleUserInteractiveFlow( req *http.Request, //the list of allowed flows and params @@ -257,8 +256,6 @@ func HandleUserInteractiveFlow ( sessionID string, cfg *config.Dendrite, - accountDB *accounts.Database, - deviceDB *devices.Database, res userInteractiveResponse, responseHandler userInteractiveResponseHandler, ) util.JSONResponse {