Skip to content

Commit 2e9fa6f

Browse files
mcanouilcderv
authored andcommitted
revert: else statement always returns a file not a directory
1 parent d20b4a4 commit 2e9fa6f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/quarto-core/attribution/document.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,7 @@ export function synthesizeCitationUrl(
465465
join(dirname(input), basename(outputFile)),
466466
);
467467
const part = pathWithForwardSlashes(relativePath);
468-
if (part.length === 0) {
469-
return `${baseUrl}/`;
470-
} else {
471-
return `${baseUrl}/${part}/`;
472-
}
468+
return `${baseUrl}/${part}`;
473469
}
474470
} else {
475471
// The url is unknown

0 commit comments

Comments
 (0)