From 2c94c1e3f0de0c576f81a37edb232f0bca4bf66e Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 31 Oct 2025 00:18:58 +0100 Subject: [PATCH] fix: remove unused variables to resolve lint errors - Remove unused relayNames variable from HighlightItem.tsx - Remove unused failedRelays variable from highlightCreationService.ts - All linting and type checks now pass --- src/components/HighlightItem.tsx | 3 --- src/services/highlightCreationService.ts | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/components/HighlightItem.tsx b/src/components/HighlightItem.tsx index b7b9bb75..67db5cd4 100644 --- a/src/components/HighlightItem.tsx +++ b/src/components/HighlightItem.tsx @@ -324,9 +324,6 @@ export const HighlightItem: React.FC = ({ // If isLocalOnly is true (from any fallback), show airplane icon if (isLocalOnly === true) { - const relayNames = publishedRelays.length > 0 - ? publishedRelays.map(url => url.replace(/^wss?:\/\//, '').replace(/\/$/, '')) - : [] return { icon: faPlane, tooltip: publishedRelays.length > 0 diff --git a/src/services/highlightCreationService.ts b/src/services/highlightCreationService.ts index 0e6a94d0..26b785f4 100644 --- a/src/services/highlightCreationService.ts +++ b/src/services/highlightCreationService.ts @@ -156,10 +156,6 @@ export async function createHighlight( .filter(response => response.ok) .map(response => response.from) - const failedRelays = publishResponses - .filter(response => !response.ok) - .map(response => ({ from: response.from, message: response.message })) - const successfulLocalRelays = successfulRelays.filter(url => isLocalRelay(url)) const successfulRemoteRelays = successfulRelays.filter(url => !isLocalRelay(url))