From efdb33eb312a10c75c4576f14ac27d93b907413e Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 31 Oct 2025 23:52:52 +0100 Subject: [PATCH] fix: remove unused variables in nostrUriResolver Removed unused linkEnd variable and prefixed unused type parameter with underscore to satisfy linter and type checker. --- src/utils/nostrUriResolver.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/nostrUriResolver.tsx b/src/utils/nostrUriResolver.tsx index 3c59c616..894030ce 100644 --- a/src/utils/nostrUriResolver.tsx +++ b/src/utils/nostrUriResolver.tsx @@ -130,7 +130,6 @@ function replaceNostrUrisSafely( // Find all markdown links and track their URL positions while ((match = markdownLinkRegex.exec(markdown)) !== null) { const linkStart = match.index - const linkEnd = linkStart + match[0].length // Find the start of the URL part (after "]( ) const urlStartMatch = match[0].match(/\]\(/) @@ -152,7 +151,7 @@ function replaceNostrUrisSafely( // Replace nostr URIs, but skip those inside link URLs // 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 if (isInsideLinkUrl(offset)) { // Don't replace - return original match