Skip to content

Commit

Permalink
Merge pull request #259 from mkusaka/patch
Browse files Browse the repository at this point in the history
fixed the error when there is no --config option
  • Loading branch information
tcort committed Apr 30, 2023
2 parents 3855ce7 + 4ead11c commit 23f6c93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion markdown-link-check
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ function getInputs() {
input.opts.verbose = (program.opts().verbose === true);
input.opts.retryOn429 = (program.opts().retry === true);
input.opts.aliveStatusCodes = program.opts().alive;
input.opts.config = program.opts().config.trim();
const config = program.opts().config;
if (config) {
input.opts.config = config.trim();
}

if (program.projectBaseUrl) {
input.opts.projectBaseUrl = `file://${program.projectBaseUrl}`;
Expand Down

0 comments on commit 23f6c93

Please sign in to comment.