From d18d15311f967357143b41d5efb63d44c2e23f97 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 13 Sep 2019 12:43:47 -0600 Subject: [PATCH] Remove extraneous guard on deactivation check --- src/components/views/rooms/MemberInfo.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/views/rooms/MemberInfo.js b/src/components/views/rooms/MemberInfo.js index 2c46583004..302682104c 100644 --- a/src/components/views/rooms/MemberInfo.js +++ b/src/components/views/rooms/MemberInfo.js @@ -643,11 +643,7 @@ module.exports = createReactClass({ _calculateOpsPermissions: async function(member) { let canDeactivate = false; if (this.context.matrixClient) { - try { - canDeactivate = await this.context.matrixClient.isSynapseAdministrator(); - } catch (e) { - console.error(e); - } + canDeactivate = await this.context.matrixClient.isSynapseAdministrator(); } const defaultPerms = {