refactor: 🚨 Remove unnecessary async keywords

This commit is contained in:
Jesse Wierzbinski 2024-10-03 11:43:16 +02:00
parent 132bec4d5b
commit b1d8595a7c
No known key found for this signature in database
10 changed files with 38 additions and 39 deletions

View file

@ -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(