consistent styling for duplicate mod action checks

This commit is contained in:
bunnybeam 2025-07-14 19:40:04 +01:00
parent 0191ea8844
commit 55022826cf
No known key found for this signature in database

View file

@ -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');