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
This commit is contained in:
Gigi
2025-10-31 00:18:58 +01:00
parent 19dc2f70f2
commit 2c94c1e3f0
2 changed files with 0 additions and 7 deletions

View File

@@ -324,9 +324,6 @@ export const HighlightItem: React.FC<HighlightItemProps> = ({
// If isLocalOnly is true (from any fallback), show airplane icon // If isLocalOnly is true (from any fallback), show airplane icon
if (isLocalOnly === true) { if (isLocalOnly === true) {
const relayNames = publishedRelays.length > 0
? publishedRelays.map(url => url.replace(/^wss?:\/\//, '').replace(/\/$/, ''))
: []
return { return {
icon: faPlane, icon: faPlane,
tooltip: publishedRelays.length > 0 tooltip: publishedRelays.length > 0

View File

@@ -156,10 +156,6 @@ export async function createHighlight(
.filter(response => response.ok) .filter(response => response.ok)
.map(response => response.from) .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 successfulLocalRelays = successfulRelays.filter(url => isLocalRelay(url))
const successfulRemoteRelays = successfulRelays.filter(url => !isLocalRelay(url)) const successfulRemoteRelays = successfulRelays.filter(url => !isLocalRelay(url))