From 5de1fc145374eeadcad05a660d17010bccceb67b Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 1 Feb 2022 18:26:20 +0530 Subject: [PATCH] Remove unnecessary getters --- src/matrix/registration/Registration.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/matrix/registration/Registration.ts b/src/matrix/registration/Registration.ts index c6e26604..59a6bd95 100644 --- a/src/matrix/registration/Registration.ts +++ b/src/matrix/registration/Registration.ts @@ -41,11 +41,11 @@ export class Registration { async start(): Promise { const response = await this._hsApi.register( - this._username, - this._password, - this._initialDeviceDisplayName, + this._data.username, + this._data.password, + this._data.initialDeviceDisplayName, undefined, - this._inhibitLogin).response(); + this._data.inhibitLogin).response(); return this.parseStagesFromResponse(response); } @@ -70,9 +70,4 @@ export class Registration { } return firstStage!; } - - private get _username() { return this._data.username; } - private get _password() { return this._data.password; } - private get _initialDeviceDisplayName() { return this._data.initialDeviceDisplayName; } - private get _inhibitLogin() { return this._data.inhibitLogin; } }