From 148cafe412a4fc01a69756edf6c5d95f25a24b9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20MAINIL?= Date: Thu, 7 Nov 2024 14:41:45 +0100 Subject: [PATCH] Do not override reporter option if not defined in config file --- markdown-link-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown-link-check b/markdown-link-check index 36d5518..3849a01 100755 --- a/markdown-link-check +++ b/markdown-link-check @@ -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);