Skip to content

Commit

Permalink
tools: fix linter error in html.js
Browse files Browse the repository at this point in the history
Backport-PR-URL: nodejs#15670
PR-URL: nodejs#15063
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
  • Loading branch information
targos authored and MylesBorins committed Sep 29, 2017
1 parent ecea33b commit 37dd2ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,9 @@ function replaceInText(text) {
}

function altDocs(filename) {
let html = '';

if (!docCreated) {
console.error(`Failed to add alternative version links to ${filename}`);
return html;
return '';
}

function lte(v) {
Expand Down

0 comments on commit 37dd2ad

Please sign in to comment.