mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 15:14:20 +01:00
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:
@@ -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
|
||||||
|
|||||||
@@ -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))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user