fix downloading images 💀

make downloadimage not return a uiimage cos its not used anywhere
This commit is contained in:
neon443 committed 2025-11-02 22:56:40 +00:00
1 parent f90a2c65b4
commit 29784a9a8f
4 files changed
+11 -19

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@ struct StickerSlackTests {
url: URL(string: "https://neon443.github.io/images/fav.ico")!,
id: UUID(uuidString: "0c48f4c3-1c63-41ed-96db-909e50e35dfc")!
)
let _ = try! await goodEmoji.downloadImage()
try! await goodEmoji.downloadImage()
#expect(goodEmoji.sticker!.validate(), "should be true")
let badEmoji = Emoji(
@@ -25,7 +25,7 @@ struct StickerSlackTests {
url: URL(string: "https://files.catbox.moe/ifh710.png")!,
id: UUID(uuidString: "0c48f4c3-1c63-41ed-96db-909e50e35dfc")!
)
let _ = try! await badEmoji.downloadImage()
try! await badEmoji.downloadImage()
#expect(goodEmoji.sticker!.validate(), "should be true")
badEmoji.deleteImage()
}
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.