From 2d4c1065427e6c1b6033face676d3d359694e1a8 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 1 Feb 2022 18:01:33 +0530 Subject: [PATCH] REFACTOR: Inline method --- src/matrix/registration/Registration.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/matrix/registration/Registration.ts b/src/matrix/registration/Registration.ts index d0f11a1c..e9c0b512 100644 --- a/src/matrix/registration/Registration.ts +++ b/src/matrix/registration/Registration.ts @@ -40,18 +40,13 @@ export class Registration { this._data = data; } - private async _fetchFlows(): Promise { + async start(): Promise { const response = await this._hsApi.register( this._username, this._password, this._initialDeviceDisplayName, undefined, this._inhibitLogin).response(); - return response; - } - - async start(): Promise { - const response = await this._fetchFlows(); this.parseStagesFromResponse(response); return this._firstStage; }