Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Apply Sonar feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Charly Nguyen <charly.nguyen@nordeck.net>
  • Loading branch information
Charly Nguyen committed Aug 16, 2023
1 parent 6dbb254 commit c77ba6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ export const PeopleRoomSettingsTab: VFC<{ room: Room }> = ({ room }) => {
new Promise((_, reject) =>
client.invite(roomId, userId).catch((error) => {
onError(error);
reject();
reject(error);
}),
);

const handleDeny = (userId: string): Promise<void> =>
new Promise((_, reject) =>
client.kick(roomId, userId).catch((error) => {
onError(error);
reject();
reject(error);
}),
);

Expand Down

0 comments on commit c77ba6d

Please sign in to comment.