From a653fea02071e1a1da409e6228a57f39d9565f52 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 9 Oct 2019 10:33:29 +0100 Subject: [PATCH] Removed unused lines Moved these around to avpid NPEs but they went away and I didn't notice when merging. --- src/AddThreepid.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/AddThreepid.js b/src/AddThreepid.js index b13cb0c9f3..f4a2a88b36 100644 --- a/src/AddThreepid.js +++ b/src/AddThreepid.js @@ -164,7 +164,6 @@ export default class AddThreepid { try { if (await MatrixClientPeg.get().doesServerSupportSeparateAddAndBind()) { if (this.bind) { - const identityServerDomain = MatrixClientPeg.get().idBaseUrl.split("://")[1]; const authClient = new IdentityAuthClient(); const identityAccessToken = await authClient.getAccessToken(); await MatrixClientPeg.get().bindThreePid({ @@ -198,7 +197,6 @@ export default class AddThreepid { } } } else { - const identityServerDomain = MatrixClientPeg.get().idBaseUrl.split("://")[1]; await MatrixClientPeg.get().addThreePid({ sid: this.sessionId, client_secret: this.clientSecret, @@ -260,7 +258,6 @@ export default class AddThreepid { if (await MatrixClientPeg.get().doesServerSupportSeparateAddAndBind()) { if (this.bind) { - const identityServerDomain = MatrixClientPeg.get().idBaseUrl.split("://")[1]; await MatrixClientPeg.get().bindThreePid({ sid: this.sessionId, client_secret: this.clientSecret, @@ -292,7 +289,6 @@ export default class AddThreepid { } } } else { - const identityServerDomain = MatrixClientPeg.get().idBaseUrl.split("://")[1]; await MatrixClientPeg.get().addThreePid({ sid: this.sessionId, client_secret: this.clientSecret,