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,
|
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 [];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue