Skip to content

Commit

Permalink
Merge pull request #143 from mrmlnc/ISSUE-129_fix_empty_import_path
Browse files Browse the repository at this point in the history
ISSUE-129: not crash on an empty targer
  • Loading branch information
mergify[bot] authored May 8, 2021
2 parents 6e24e4f + 181305d commit ee20f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unsafe/services/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function findDocumentLinks(document: TextDocument, ast: INode): Promise<Do
const result: DocumentLink[] = [];

for (const link of links) {
if (link.target !== undefined) {
if (link.target !== undefined && link.target !== '') {
result.push({
...link,
target: URI.parse(link.target).fsPath
Expand Down

0 comments on commit ee20f54

Please sign in to comment.