Skip to content

Commit

Permalink
remove unused variable, resolves #1646
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyliang220 committed Sep 28, 2022
1 parent 53180ae commit 767d88b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/rules/headers/dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,7 @@ export async function check(sr, done) {
.match(new RegExp(lateRex));
if (matches) {
sn = matches[1];
// latest version link can be the shortlink or the series shortlink
if (sn === shortname) {
latestURI = linkLate.textContent;
} else if (sn === seriesShortname) {
latestURI = `https://www.w3.org/TR/${shortname}/`;
}
// latest version link mention either shortlink or the series shortlink
if (sn !== shortname && sn !== seriesShortname)
sr.error(self, 'this-latest-shortname', {
thisShortname: shortname,
Expand Down

0 comments on commit 767d88b

Please sign in to comment.