Skip to content

Commit 10a0c46

Browse files
sineldclaude
andcommitted
style: format tiff-viewer with Prettier
`components/object/tiff-viewer.tsx` was not Prettier-clean on `main`, so `pnpm format:check` — a required gate in AGENTS.md — failed for every branch regardless of its contents. Whitespace only; no behaviour change. Unrelated to the account and two-factor work in this branch, and separated into its own commit so it can be cherry-picked or dropped independently. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NgvAaMmAmq9Sg5BrSc8T5d
1 parent a9ee0ae commit 10a0c46

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

‎components/object/tiff-viewer.tsx‎

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ export function TiffViewer({ url, objectKey }: TiffViewerProps) {
7171
} catch (err: unknown) {
7272
if (cancelled) return
7373
const message =
74-
err instanceof Error && err.name === "AbortError"
75-
? ""
76-
: err instanceof Error
77-
? err.message
78-
: String(err)
74+
err instanceof Error && err.name === "AbortError" ? "" : err instanceof Error ? err.message : String(err)
7975
setError(message || t("Preview unavailable"))
8076
setLoading(false)
8177
}
@@ -116,21 +112,12 @@ export function TiffViewer({ url, objectKey }: TiffViewerProps) {
116112
}
117113

118114
if (error) {
119-
return (
120-
<div className="flex flex-1 items-center justify-center text-sm text-muted-foreground">
121-
{error}
122-
</div>
123-
)
115+
return <div className="flex flex-1 items-center justify-center text-sm text-muted-foreground">{error}</div>
124116
}
125117

126118
return (
127119
<div className="flex flex-1 items-center justify-center overflow-auto">
128-
<canvas
129-
ref={canvasRef}
130-
className="max-h-full max-w-full object-contain"
131-
role="img"
132-
aria-label={objectKey}
133-
/>
120+
<canvas ref={canvasRef} className="max-h-full max-w-full object-contain" role="img" aria-label={objectKey} />
134121
</div>
135122
)
136123
}

0 commit comments

Comments
 (0)