diff --git a/lib/base-apis.js b/lib/base-apis.js index b5d151392..e886ad1ca 100644 --- a/lib/base-apis.js +++ b/lib/base-apis.js @@ -139,7 +139,9 @@ MatrixBaseApis.prototype.register = function( if (username !== undefined && username !== null) { params.username = username; } if (password !== undefined && password !== null) { params.password = password; } if (bindEmail !== undefined && bindEmail !== null) { params.bind_email = bindEmail; } - if (guestAccessToken !== undefined && guestAccessToken !== null) { params.guest_access_token = guestAccessToken; } + if (guestAccessToken !== undefined && guestAccessToken !== null) { + params.guest_access_token = guestAccessToken; + } return this.registerRequest(params, undefined, callback); };