[bugfix] Add missing continues in emoji get funcs (#1200)

This commit is contained in:
tobi 2022-12-02 16:41:05 +01:00 committed by GitHub
parent bb7948f31a
commit 34716d7d7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -407,6 +407,7 @@ func (e *emojiDB) emojisFromIDs(ctx context.Context, emojiIDs []string) ([]*gtsm
emoji, err := e.GetEmojiByID(ctx, id)
if err != nil {
log.Errorf("emojisFromIDs: error getting emoji %q: %v", id, err)
continue
}
emojis = append(emojis, emoji)
@ -440,6 +441,7 @@ func (e *emojiDB) emojiCategoriesFromIDs(ctx context.Context, emojiCategoryIDs [
emojiCategory, err := e.GetEmojiCategory(ctx, id)
if err != nil {
log.Errorf("emojiCategoriesFromIDs: error getting emoji category %q: %v", id, err)
continue
}
emojiCategories = append(emojiCategories, emojiCategory)