From 5ecfaa433b1a663645b00d6f87e93314c7f7d0dd Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Mon, 27 Jul 2026 00:00:33 +0800 Subject: [PATCH] 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 --- src/features/pet/DesktopPetView.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/features/pet/DesktopPetView.tsx b/src/features/pet/DesktopPetView.tsx index 5d0e1e2..6ca09ed 100644 --- a/src/features/pet/DesktopPetView.tsx +++ b/src/features/pet/DesktopPetView.tsx @@ -189,9 +189,7 @@ export function DesktopPetView({ embedded = false }: { embedded?: boolean }) { ); } catch (reason) { setSpriteError( - reason instanceof Error - ? reason.message - : "桌宠精灵图绘制失败。", + reason instanceof Error ? reason.message : "桌宠精灵图绘制失败。", ); } }, [frameColumn, frameRow, spriteReady]);