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:
committed by
GitHub
parent
9c021a6bde
commit
0f1668ef76
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user