mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +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) {
|
||||
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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue