Skip to content

Commit

Permalink
doc: removes redudant if from version labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Young authored and Chris Young committed Jul 16, 2017
1 parent c21e62b commit 0e35692
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function altDocs(filename) {
const a = (v) => `<a href="${href(v)}">v${v}</a>`;
const as = (vs) => vs.filter(lte).map(a).join(' / ');

html += '<b>Current:</b> ' + a('7.x');
html += 'View another version of this page <b>Current:</b> ' + a('7.x');

const lts = as(['4.x', '6.x']);
if (lts.length)
Expand All @@ -225,9 +225,6 @@ function altDocs(filename) {
if (unsupported.length)
html += ' <b>Unsupported:</b> ' + unsupported;

if (html.length)
html = 'View another version of this page ' + html;

return html;
}

Expand Down

0 comments on commit 0e35692

Please sign in to comment.