Remove extraneous guard on deactivation check

pull/21833/head
Travis Ralston 2019-09-13 12:43:47 -06:00
parent 27828a3785
commit d18d15311f
1 changed files with 1 additions and 5 deletions

View File

@ -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 = {