From 878d9b758a8088be83cc8808191532e36f0e5908 Mon Sep 17 00:00:00 2001 From: Daniel Dominguez Date: Wed, 23 May 2018 15:17:26 -0300 Subject: [PATCH] Refactor/delete useless code on convertToShareLink function. --- src/lbryURI.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lbryURI.js b/src/lbryURI.js index c755357..24b20b1 100644 --- a/src/lbryURI.js +++ b/src/lbryURI.js @@ -230,12 +230,5 @@ export function isURIClaimable(URI) { } export function convertToShareLink(URI) { - if (URI.match(/pending_claim/)) return URI; - - const { claimName, path, bidPosition, claimSequence, claimId } = parseURI(URI); - return buildURI( - { claimName, path, claimSequence, bidPosition, claimId }, - true, - 'https://open.lbry.io/' - ); + return buildURI(parseURI(URI), true, 'https://open.lbry.io/'); }