From 2aad5546bf73a50df0abd303146b9b3e25aed975 Mon Sep 17 00:00:00 2001 From: R Midhun Suresh Date: Thu, 3 Feb 2022 12:07:09 +0530 Subject: [PATCH] No need for Object.assign here either Co-authored-by: Bruno Windels --- src/matrix/net/HomeServerApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/net/HomeServerApi.ts b/src/matrix/net/HomeServerApi.ts index 7f7dd16c..b9651cee 100644 --- a/src/matrix/net/HomeServerApi.ts +++ b/src/matrix/net/HomeServerApi.ts @@ -157,7 +157,7 @@ export class HomeServerApi { } register(username: string | null, password: string, initialDeviceDisplayName: string, auth?: Record, inhibitLogin: boolean = true , options: IRequestOptions = {}): IHomeServerRequest { - Object.assign(options, { allowedErrors: [401] }); + options.allowedErrors = [401]; const body: any = { auth, password,