From 67336446f328907c2c92ae626b2c2f18a74161d0 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Tue, 17 Jul 2018 16:02:13 +0100 Subject: [PATCH] Fix some grammar --- .../matrix-org/dendrite/clientapi/routing/register.go | 5 ++--- 1 file changed, 2 insertions(+), 3 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 4d0e956fc..62a305bcb 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/register.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/register.go @@ -382,8 +382,8 @@ func validateApplicationService( return matchedApplicationService.ID, nil } -// authTypeIsValid check the registration authentication type of the request -// and returns an error if necessary +// authTypeIsValid checks the registration authentication type of the request +// and returns true or false depending on whether the auth type is valid func authTypeIsValid(authType *authtypes.LoginType, req *http.Request) bool { // If no auth type is specified by the client, send back the list of available flows if *authType == "" && req.URL.Query().Get("access_token") != "" { @@ -396,7 +396,6 @@ func authTypeIsValid(authType *authtypes.LoginType, req *http.Request) bool { } return true - } // Register processes a /register request.