mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-21 16:30:12 +01:00
Remove unnecessary params parameter to shared.flattenLists/forEachLine.
This commit is contained in:
parent
942cc9af08
commit
748c8cac17
15 changed files with 15 additions and 15 deletions
|
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
"function": function MD012(params, onError) {
|
||||
var maximum = params.config.maximum || 1;
|
||||
var count = 0;
|
||||
shared.forEachLine(params, function forLine(line, lineIndex, inCode) {
|
||||
shared.forEachLine(function forLine(line, lineIndex, inCode) {
|
||||
count = (inCode || line.trim().length) ? 0 : count + 1;
|
||||
if (maximum < count) {
|
||||
shared.addErrorDetailIf(onError, lineIndex + 1, maximum, count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue