From 13f72e1df2bcde0812fa3187bfb3fb7267932394 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 15 Jul 2015 19:26:52 +0100 Subject: [PATCH] lint --- lib/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/client.js b/lib/client.js index 3334564a7..4bd229bf9 100644 --- a/lib/client.js +++ b/lib/client.js @@ -935,13 +935,13 @@ MatrixClient.prototype.login = function(loginType, data, callback) { MatrixClient.prototype.register = function(username, password, session_id, auth, callback) { if (auth === undefined) { auth = {}; } - if (session_id) auth.session = session_id; + if (session_id) { auth.session = session_id; } var params = { auth: auth }; - if (username !== undefined) params.username = username; - if (password !== undefined ) params.password = password; + if (username !== undefined) { params.username = username; } + if (password !== undefined) { params.password = password; } return this._http.requestWithPrefix( callback, "POST", "/register", undefined,