Skip to content

Commit

Permalink
fixed the error when there is no --config option
Browse files Browse the repository at this point in the history
  • Loading branch information
mkusaka committed Apr 19, 2023
1 parent bfee3ac commit 4ead11c
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 4ead11c

Please sign in to comment.