Remove unnecessary params parameter to shared.flattenLists/forEachLine.

This commit is contained in:
David Anson 2018-03-04 23:06:31 -08:00
parent 942cc9af08
commit 748c8cac17
15 changed files with 15 additions and 15 deletions

View file

@ -10,7 +10,7 @@ module.exports = {
"tags": [ "code", "blank_lines" ],
"function": function MD031(params, onError) {
var lines = params.lines;
shared.forEachLine(params, function forLine(line, i, inCode, onFence) {
shared.forEachLine(function forLine(line, i, inCode, onFence) {
if (((onFence > 0) && (i - 1 >= 0) && lines[i - 1].length) ||
((onFence < 0) && (i + 1 < lines.length) && lines[i + 1].length)) {
shared.addErrorContext(onError, i + 1, lines[i].trim());