fix lint
This commit is contained in:
parent
35323db519
commit
f0a5180019
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ const expandToIncludeEntireLink = (
|
||||||
startIndex < truncated.length && lastIndex > truncated.length
|
startIndex < truncated.length && lastIndex > truncated.length
|
||||||
);
|
);
|
||||||
|
|
||||||
if (truncatedLink.length === 0) return truncated;
|
if (truncatedLink.length === 0) {
|
||||||
|
return truncated;
|
||||||
|
}
|
||||||
|
|
||||||
return original.slice(0, truncatedLink[0].lastIndex);
|
return original.slice(0, truncatedLink[0].lastIndex);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue