mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
Remove unused parameter to helpers.getReferenceLinkImageData.
This commit is contained in:
parent
fa0782d729
commit
a14df5aa5f
3 changed files with 6 additions and 6 deletions
|
@ -787,11 +787,10 @@ module.exports.emphasisMarkersInContent = emphasisMarkersInContent;
|
|||
/**
|
||||
* Returns an object with information about reference links and images.
|
||||
*
|
||||
* @param {Object} params RuleParams instance.
|
||||
* @param {Object} lineMetadata Line metadata object.
|
||||
* @returns {Object} Reference link/image data.
|
||||
*/
|
||||
function getReferenceLinkImageData(params, lineMetadata) {
|
||||
function getReferenceLinkImageData(lineMetadata) {
|
||||
// Initialize return values
|
||||
const references = new Map();
|
||||
const shortcuts = new Set();
|
||||
|
@ -1048,6 +1047,7 @@ function applyFixes(input, errors) {
|
|||
(deleteCount === -1) ||
|
||||
((editIndex + deleteCount) <=
|
||||
(lastEditIndex - ((deleteCount > 0) ? 0 : 1)))) {
|
||||
// @ts-ignore
|
||||
lines[lineIndex] = applyFix(lines[lineIndex], fixInfo, lineEnding);
|
||||
}
|
||||
lastLineIndex = lineIndex;
|
||||
|
@ -1759,7 +1759,7 @@ function lintContent(ruleList, name, content, md, config, configParsers, frontMa
|
|||
const codeBlockAndSpanRanges = helpers.codeBlockAndSpanRanges(paramsBase, lineMetadata);
|
||||
const flattenedLists = helpers.flattenLists(paramsBase.tokens);
|
||||
const htmlElementRanges = helpers.htmlElementRanges(paramsBase, lineMetadata);
|
||||
const referenceLinkImageData = helpers.getReferenceLinkImageData(paramsBase, lineMetadata);
|
||||
const referenceLinkImageData = helpers.getReferenceLinkImageData(lineMetadata);
|
||||
cache.set({
|
||||
codeBlockAndSpanRanges,
|
||||
flattenedLists,
|
||||
|
|
|
@ -807,11 +807,10 @@ module.exports.emphasisMarkersInContent = emphasisMarkersInContent;
|
|||
/**
|
||||
* Returns an object with information about reference links and images.
|
||||
*
|
||||
* @param {Object} params RuleParams instance.
|
||||
* @param {Object} lineMetadata Line metadata object.
|
||||
* @returns {Object} Reference link/image data.
|
||||
*/
|
||||
function getReferenceLinkImageData(params, lineMetadata) {
|
||||
function getReferenceLinkImageData(lineMetadata) {
|
||||
// Initialize return values
|
||||
const references = new Map();
|
||||
const shortcuts = new Set();
|
||||
|
@ -1083,6 +1082,7 @@ function applyFixes(input, errors) {
|
|||
((editIndex + deleteCount) <=
|
||||
(lastEditIndex - ((deleteCount > 0) ? 0 : 1)))
|
||||
) {
|
||||
// @ts-ignore
|
||||
lines[lineIndex] = applyFix(lines[lineIndex], fixInfo, lineEnding);
|
||||
}
|
||||
lastLineIndex = lineIndex;
|
||||
|
|
|
@ -577,7 +577,7 @@ function lintContent(
|
|||
const htmlElementRanges =
|
||||
helpers.htmlElementRanges(paramsBase, lineMetadata);
|
||||
const referenceLinkImageData =
|
||||
helpers.getReferenceLinkImageData(paramsBase, lineMetadata);
|
||||
helpers.getReferenceLinkImageData(lineMetadata);
|
||||
cache.set({
|
||||
codeBlockAndSpanRanges,
|
||||
flattenedLists,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue