fix: resolve all linting issues

- Remove unused DebugBus import from App.tsx
- Remove unused NostrEvent import from relayListService.ts
- Add comment to empty catch block in ContentPanel.tsx
- Remove unused targetUrlsMap variable from relayManager.ts
- All linting errors resolved, TypeScript type checking passes
This commit is contained in:
Gigi
2025-10-20 20:01:40 +02:00
parent 2a44b4e3c0
commit 15fd19f6a4
4 changed files with 1 additions and 3 deletions

View File

@@ -18,7 +18,6 @@ import { useToast } from './hooks/useToast'
import { useOnlineStatus } from './hooks/useOnlineStatus'
import { RELAYS } from './config/relays'
import { SkeletonThemeProvider } from './components/Skeletons'
import { DebugBus } from './utils/debugBus'
import { loadUserRelayList, loadBlockedRelays, computeRelaySet } from './services/relayListService'
import { applyRelaySetToPool, getActiveRelayUrls, ALWAYS_LOCAL_RELAYS } from './services/relayManager'
import { Bookmark } from './types/bookmarks'

View File

@@ -581,6 +581,7 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
const naddr = nip19.naddrEncode({ kind: 30023, pubkey: currentArticle.pubkey, identifier: dTag })
hasRead = hasRead || archiveController.isMarked(naddr)
} catch (e) {
// Silently ignore encoding errors
}
}
} else {

View File

@@ -1,5 +1,4 @@
import { RelayPool } from 'applesauce-relay'
import { NostrEvent } from 'nostr-tools'
import { queryEvents } from './dataFetch'
export interface UserRelayInfo {

View File

@@ -45,7 +45,6 @@ export function applyRelaySetToPool(
// Normalize all URLs to match pool's internal format
const currentUrls = new Set(Array.from(relayPool.relays.keys()))
const normalizedTargetUrls = new Set(finalUrls.map(normalizeRelayUrl))
const targetUrlsMap = new Map(finalUrls.map(url => [normalizeRelayUrl(url), url]))
console.log('[relayManager] applyRelaySetToPool called')
console.log('[relayManager] Current pool has:', currentUrls.size, 'relays')