Fix comment indentation

This commit is contained in:
ekzyis 2025-09-21 20:44:19 +02:00
parent 33d8561890
commit fe160ef698

View File

@ -29,7 +29,7 @@ export const nwcUrlValidator = () =>
try { try {
({ relayUrls, walletPubkey, secret } = parseNwcUrl(url)) ({ relayUrls, walletPubkey, secret } = parseNwcUrl(url))
} catch { } catch {
// invalid URL error. handle as if pubkey validation failed to not confuse user. // invalid URL error. handle as if pubkey validation failed to not confuse user.
throw new Error('pubkey must be 64 hex chars') throw new Error('pubkey must be 64 hex chars')
} }
string().required('pubkey required').trim().matches(NOSTR_PUBKEY_HEX, 'pubkey must be 64 hex chars').validateSync(walletPubkey) string().required('pubkey required').trim().matches(NOSTR_PUBKEY_HEX, 'pubkey must be 64 hex chars').validateSync(walletPubkey)