Skip to content

Commit

Permalink
Check for undefined, as it'll lead to less surprising behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
pvallone committed Feb 9, 2023
1 parent 05d203f commit f4189ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdown-link-check
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function getInputs() {
input.opts.verbose = (program.verbose === true);
input.opts.retryOn429 = (program.retry === true);
input.opts.aliveStatusCodes = program.alive;
if (program.projectBaseUrl) {
if (program.projectBaseUrl !== undefined) {
input.opts.projectBaseUrl = `file://${program.projectBaseUrl}`;
} else {
// set the default projectBaseUrl to the current working directory, so that `{{BASEURL}}` can be resolved to the project root.
Expand Down

0 comments on commit f4189ff

Please sign in to comment.