1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-23 22:42:10 +03:00

lint errors

This commit is contained in:
David Baker
2015-07-14 10:09:08 +01:00
parent 864fdcb925
commit 58df45814b

View File

@@ -931,8 +931,9 @@ MatrixClient.prototype.login = function(loginType, data, callback) {
* @return {module:client.Promise} Resolves: TODO
* @return {module:http-api.MatrixError} Rejects: with an error response.
*/
MatrixClient.prototype.register = function(username, password, session_id, auth, callback) {
if (auth === undefined) auth = {};
MatrixClient.prototype.register = function(username, password,
session_id, auth, callback) {
if (auth === undefined) { auth = {}; }
auth.session = session_id;
return this._http.requestWithPrefix(
callback, "POST", "/register", undefined,