From 0d237405d9fdf591ab9f29394594761e57642dfc Mon Sep 17 00:00:00 2001 From: Asai Toshiya Date: Thu, 31 Oct 2024 20:43:03 +0900 Subject: [PATCH] fix lint error. --- nip05.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nip05.ts b/nip05.ts index a1e11d6..2c1545f 100644 --- a/nip05.ts +++ b/nip05.ts @@ -17,7 +17,9 @@ let _fetch: any try { _fetch = fetch -} catch (_) {null} +} catch (_) { + null +} export function useFetchImplementation(fetchImplementation: unknown) { _fetch = fetchImplementation @@ -28,7 +30,7 @@ export async function searchDomain(domain: string, query = ''): Promise<{ [name: const url = `https://${domain}/.well-known/nostr.json?name=${query}` const res = await _fetch(url, { redirect: 'manual' }) if (res.status !== 200) { - throw Error("Wrong response code") + throw Error('Wrong response code') } const json = await res.json() return json.names @@ -47,7 +49,7 @@ export async function queryProfile(fullname: string): Promise