chore: fix various lint warnings

This commit is contained in:
plebeius
2025-12-26 17:30:55 +01:00
parent c9c9a8a78d
commit 756bff4b04
6 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ const getClientHost = (clientUrl: string): string => {
if (!clientHosts[clientUrl]) {
try {
clientHosts[clientUrl] = new URL(clientUrl).hostname || clientUrl;
} catch (e) {
} catch {
clientHosts[clientUrl] = clientUrl;
}
}
@@ -120,7 +120,7 @@ export const useFeedStateString = (subplebbitAddresses?: string[]): string | und
}
// find all client urls
const clientHosts = new Set([...pagesStatesClientHosts]);
const clientHosts = new Set(pagesStatesClientHosts);
states['fetching-ipns']?.clientUrls.forEach((clientUrl) => clientHosts.add(getClientHost(clientUrl)));
states['fetching-ipfs']?.clientUrls.forEach((clientUrl) => clientHosts.add(getClientHost(clientUrl)));