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) {
anyHeadings = true;
const actual = levels[heading.tag] + " " + content;
let expected = getExpected();
const expected = getExpected();
if (expected === "*") {
matchAny = true;
expected = getExpected();
getExpected();
} else if (expected === "+") {
matchAny = true;
} else if (expected.toLowerCase() === actual.toLowerCase()) {