mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Remove unnecessary getters
This commit is contained in:
parent
2f3865d8cc
commit
5de1fc1453
@ -41,11 +41,11 @@ export class Registration {
|
|||||||
|
|
||||||
async start(): Promise<BaseRegistrationStage> {
|
async start(): Promise<BaseRegistrationStage> {
|
||||||
const response = await this._hsApi.register(
|
const response = await this._hsApi.register(
|
||||||
this._username,
|
this._data.username,
|
||||||
this._password,
|
this._data.password,
|
||||||
this._initialDeviceDisplayName,
|
this._data.initialDeviceDisplayName,
|
||||||
undefined,
|
undefined,
|
||||||
this._inhibitLogin).response();
|
this._data.inhibitLogin).response();
|
||||||
return this.parseStagesFromResponse(response);
|
return this.parseStagesFromResponse(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,9 +70,4 @@ export class Registration {
|
|||||||
}
|
}
|
||||||
return firstStage!;
|
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; }
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user