fix(api): 🐛 Remove useless null check

This commit is contained in:
Jesse Wierzbinski 2024-09-14 17:34:12 +02:00
parent ad2d47d174
commit 12f7fa4047
No known key found for this signature in database

View file

@ -255,7 +255,7 @@ export const parseTextMentions = async (
text: string, text: string,
author: User, author: User,
): Promise<User[]> => { ): Promise<User[]> => {
const mentionedPeople = [...text.matchAll(mentionValidator)] ?? []; const mentionedPeople = [...text.matchAll(mentionValidator)];
if (mentionedPeople.length === 0) { if (mentionedPeople.length === 0) {
return []; return [];
} }