consistent styling for duplicate mod action checks
This commit is contained in:
parent
0191ea8844
commit
55022826cf
1 changed files with 1 additions and 3 deletions
|
|
@ -42,9 +42,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
throw new Error('user not found');
|
||||
}
|
||||
|
||||
if (user.isSuspended) {
|
||||
return;
|
||||
}
|
||||
if (user.isSuspended) return;
|
||||
|
||||
if (await this.roleService.isModerator(user)) {
|
||||
throw new Error('cannot suspend moderator account');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue