mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
refactor: 🚨 Remove unnecessary async keywords
This commit is contained in:
parent
132bec4d5b
commit
b1d8595a7c
10 changed files with 38 additions and 39 deletions
|
|
@ -172,10 +172,10 @@ export class Emoji extends BaseInterface<typeof Emojis, EmojiWithInstance> {
|
|||
* @param text The text to parse
|
||||
* @returns An array of emojis
|
||||
*/
|
||||
public static async parseFromText(text: string): Promise<Emoji[]> {
|
||||
public static parseFromText(text: string): Promise<Emoji[]> {
|
||||
const matches = text.match(emojiValidatorWithColons);
|
||||
if (!matches || matches.length === 0) {
|
||||
return [];
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
|
||||
return Emoji.manyFromSql(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue