Refactor/delete useless code on convertToShareLink function.

This commit is contained in:
Daniel Dominguez 2018-05-23 15:17:26 -03:00
parent 2f51f79730
commit 878d9b758a

View file

@ -230,12 +230,5 @@ export function isURIClaimable(URI) {
} }
export function convertToShareLink(URI) { export function convertToShareLink(URI) {
if (URI.match(/pending_claim/)) return URI; return buildURI(parseURI(URI), true, 'https://open.lbry.io/');
const { claimName, path, bidPosition, claimSequence, claimId } = parseURI(URI);
return buildURI(
{ claimName, path, claimSequence, bidPosition, claimId },
true,
'https://open.lbry.io/'
);
} }