mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
fix(api): 🐛 Remove useless null check
This commit is contained in:
parent
ad2d47d174
commit
12f7fa4047
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue