fix: remove unused variables in nostrUriResolver

Removed unused linkEnd variable and prefixed unused type parameter
with underscore to satisfy linter and type checker.
This commit is contained in:
Gigi
2025-10-31 23:52:52 +01:00
parent 0abbe62515
commit efdb33eb31

View File

@@ -130,7 +130,6 @@ function replaceNostrUrisSafely(
// Find all markdown links and track their URL positions // Find all markdown links and track their URL positions
while ((match = markdownLinkRegex.exec(markdown)) !== null) { while ((match = markdownLinkRegex.exec(markdown)) !== null) {
const linkStart = match.index const linkStart = match.index
const linkEnd = linkStart + match[0].length
// Find the start of the URL part (after "]( ) // Find the start of the URL part (after "]( )
const urlStartMatch = match[0].match(/\]\(/) const urlStartMatch = match[0].match(/\]\(/)
@@ -152,7 +151,7 @@ function replaceNostrUrisSafely(
// Replace nostr URIs, but skip those inside link URLs // Replace nostr URIs, but skip those inside link URLs
// Callback params: (match, encoded, type, offset, string) // Callback params: (match, encoded, type, offset, string)
return markdown.replace(NOSTR_URI_REGEX, (match, encoded, type, offset) => { return markdown.replace(NOSTR_URI_REGEX, (match, encoded, _type, offset) => {
// Check if this match is inside a markdown link URL // Check if this match is inside a markdown link URL
if (isInsideLinkUrl(offset)) { if (isInsideLinkUrl(offset)) {
// Don't replace - return original match // Don't replace - return original match