mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
Remove useless assignment to local variable.
This commit is contained in:
parent
369b0b5934
commit
868310a094
1 changed files with 2 additions and 2 deletions
|
|
@ -26,10 +26,10 @@ module.exports = {
|
||||||
if (!hasError) {
|
if (!hasError) {
|
||||||
anyHeadings = true;
|
anyHeadings = true;
|
||||||
const actual = levels[heading.tag] + " " + content;
|
const actual = levels[heading.tag] + " " + content;
|
||||||
let expected = getExpected();
|
const expected = getExpected();
|
||||||
if (expected === "*") {
|
if (expected === "*") {
|
||||||
matchAny = true;
|
matchAny = true;
|
||||||
expected = getExpected();
|
getExpected();
|
||||||
} else if (expected === "+") {
|
} else if (expected === "+") {
|
||||||
matchAny = true;
|
matchAny = true;
|
||||||
} else if (expected.toLowerCase() === actual.toLowerCase()) {
|
} else if (expected.toLowerCase() === actual.toLowerCase()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue