fmt(js): npm run fix on merge (#108753)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot]
2026-09-12 02:33:53 +00:00
committed by GitHub
parent 9c021a6bde
commit 0f1668ef76
+8 -9
View File
@@ -48,16 +48,15 @@ function petThumbIcon(slug: string, spriteUrl: null | string | undefined): Promi
.then(result => (result?.ok && result.dataUri ? result.dataUri : null))
.catch(() => null),
deadline
])
.then(icon => {
// Never cache a failure: a transient backend error must not poison
// the tile for the rest of the session.
if (!icon) {
petThumbCache.delete(slug)
}
]).then(icon => {
// Never cache a failure: a transient backend error must not poison
// the tile for the rest of the session.
if (!icon) {
petThumbCache.delete(slug)
}
return icon
})
return icon
})
petThumbCache.set(slug, pending)
}