fix lint errors

This commit is contained in:
MohitKS5 2018-03-05 22:10:18 +05:30
parent 26de6e25fc
commit 85527fbda0
2 changed files with 4 additions and 7 deletions

View file

@ -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,

View file

@ -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 {