No need for Object.assign here either

Co-authored-by: Bruno Windels <brunow@matrix.org>
This commit is contained in:
R Midhun Suresh 2022-02-03 12:07:09 +05:30 committed by RMidhunSuresh
parent 7bacbec5e9
commit 2aad5546bf

View file

@ -157,7 +157,7 @@ export class HomeServerApi {
}
register(username: string | null, password: string, initialDeviceDisplayName: string, auth?: Record<string, any>, inhibitLogin: boolean = true , options: IRequestOptions = {}): IHomeServerRequest {
Object.assign(options, { allowedErrors: [401] });
options.allowedErrors = [401];
const body: any = {
auth,
password,