Skip to content

Commit

Permalink
Use default reporter when none specified in config
Browse files Browse the repository at this point in the history
This addresses [Issue#369], where using a config file that doesn't
specify a reporter breaks. We update the code so that when there's a
config without a reporter, we fallback to the default one.

[issue#369]: tcort#369
  • Loading branch information
Dave Zuch authored and Dave Zuch committed Dec 10, 2024
1 parent d090c91 commit 00bdf19
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 @@ -288,7 +288,7 @@ async function processInput(filenameForOutput, stream, opts) {
opts.retryCount = config.retryCount;
opts.fallbackRetryDelay = config.fallbackRetryDelay;
opts.aliveStatusCodes = config.aliveStatusCodes;
opts.reporters = config.reporters;
opts.reporters = config.reporters ?? opts.reporters;
}

await runMarkdownLinkCheck(filenameForOutput, markdown, opts);
Expand Down

0 comments on commit 00bdf19

Please sign in to comment.