Skip to content

Commit

Permalink
Remove unused branch
Browse files Browse the repository at this point in the history
No tests on 'next' are broken by removing this
  • Loading branch information
tommy-gilligan committed Jul 27, 2023
1 parent b6f5e85 commit 59baf40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/markdownlint-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@ function getEnabledRulesPerLineNumber(ruleList, lines, frontMatterLines, noInlin
var disableNextLine = action === "DISABLE-NEXT-LINE";
if (disableLine || disableNextLine) {
var nextLineNumber = frontMatterLines.length + lineNumber + (disableNextLine ? 1 : 0);
enabledRulesPerLineNumber[nextLineNumber] = applyEnableDisable(action, parameter, enabledRulesPerLineNumber[nextLineNumber] || {});
enabledRulesPerLineNumber[nextLineNumber] = applyEnableDisable(action, parameter, enabledRulesPerLineNumber[nextLineNumber]);
}
}
// Handle inline comments
Expand Down
2 changes: 1 addition & 1 deletion lib/markdownlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ function getEnabledRulesPerLineNumber(
applyEnableDisable(
action,
parameter,
enabledRulesPerLineNumber[nextLineNumber] || {}
enabledRulesPerLineNumber[nextLineNumber]
);
}
}
Expand Down

0 comments on commit 59baf40

Please sign in to comment.