mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Remove useless null check
This commit is contained in:
parent
ad2d47d174
commit
12f7fa4047
|
|
@ -255,7 +255,7 @@ export const parseTextMentions = async (
|
|||
text: string,
|
||||
author: User,
|
||||
): Promise<User[]> => {
|
||||
const mentionedPeople = [...text.matchAll(mentionValidator)] ?? [];
|
||||
const mentionedPeople = [...text.matchAll(mentionValidator)];
|
||||
if (mentionedPeople.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue