This commit is contained in:
neon443 committed 2026-04-08 20:11:50 +01:00
1 parent 34af5e547e
commit 600d2e3cb6
2 files changed
+8 -4

No files matched your search

+7 -3
View File
@@ -165,11 +165,15 @@ class EmojiHoarder: BaseHoarder {
// nonisolated
private func loadLocalDB() -> [Emoji] {
if let localEmojiDB = try? Data(contentsOf: EmojiHoarder.localEmojiDB) {
let decoded = try! decoder.decode([Emoji].self, from: localEmojiDB)
do {
let localEmojiDB = try Data(contentsOf: EmojiHoarder.localEmojiDB)
let decoded = try decoder.decode([Emoji].self, from: localEmojiDB)
return decoded
} catch {
print(error)
print(error.localizedDescription)
return []
}
return []
}
nonisolated
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.