Remove useless assignment to local variable.

This commit is contained in:
David Anson 2021-01-05 21:06:00 -08:00
parent 369b0b5934
commit 868310a094

View file

@ -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()) {