Skip to content

Commit d24be66

Browse files
committed
fix: resolve eslint v10 errors in app (no-useless-assignment, preserve-caught-error)
1 parent 760b3b6 commit d24be66

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/fluux/src/components/LinkPreviewCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function LinkPreviewCard({ preview, onLoad }: LinkPreviewCardProps) {
1515
const [imageError, setImageError] = useState(false)
1616

1717
// Extract domain from URL for display
18-
let domain = ''
18+
let domain: string
1919
try {
2020
const url = new URL(preview.url)
2121
domain = url.hostname.replace(/^www\./, '')

apps/fluux/src/components/conversation/MessageList.test-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export class ScenarioBuilder {
354354
try {
355355
await step.fn()
356356
} catch (error) {
357-
throw new Error(`Scenario failed at "${step.label}": ${error}`)
357+
throw new Error(`Scenario failed at "${step.label}": ${error}`, { cause: error })
358358
}
359359
}
360360
}

0 commit comments

Comments
 (0)