Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
Added a message which shows up when there are no hyperlinks in the pr…
Browse files Browse the repository at this point in the history
…ovided asciidoc file
  • Loading branch information
Gaurav Nelson committed Sep 4, 2017
1 parent 371cfa4 commit 638f926
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions asciidoc-link-check
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ stream.on('data', function (chunk) {
asciidoc += chunk.toString();
}).on('end', function () {
asciidocLinkCheck(asciidoc, opts, function (err, results) {
if ((results.length === 0) && !(error)) {
console.log(chalk.yellow('No hyperlinks found!'))
}
results.forEach(function (result) {
if(result.status === 'dead') {
error = true;
Expand Down

0 comments on commit 638f926

Please sign in to comment.