From 34716d7d7d704c3f669cc92aa535ba19297c134d Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 2 Dec 2022 16:41:05 +0100 Subject: [PATCH] [bugfix] Add missing continues in emoji get funcs (#1200) --- internal/db/bundb/emoji.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/db/bundb/emoji.go b/internal/db/bundb/emoji.go index 55e0ee3f..554d8f56 100644 --- a/internal/db/bundb/emoji.go +++ b/internal/db/bundb/emoji.go @@ -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)