fix(pet): restore prettier formatting in the sprite error branch

Commit 41592e2 shortened the localized fallback string but left the
ternary wrapped across three lines, which prettier now collapses. This
file passed `prettier --check` at 785f125 and failed afterwards, so it
is the only formatting regression introduced by the R1/R2 batch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
这个提交存在于:
YokiiroBW 2026-07-27 00:00:33 +08:00
父节点 573f9f793b
当前提交 5ecfaa433b

查看文件

@ -189,9 +189,7 @@ export function DesktopPetView({ embedded = false }: { embedded?: boolean }) {
); );
} catch (reason) { } catch (reason) {
setSpriteError( setSpriteError(
reason instanceof Error reason instanceof Error ? reason.message : "桌宠精灵图绘制失败。",
? reason.message
: "桌宠精灵图绘制失败。",
); );
} }
}, [frameColumn, frameRow, spriteReady]); }, [frameColumn, frameRow, spriteReady]);