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

Commit

Permalink
Merge pull request #3 from gaurav-nelson/messageWhenNoLinks
Browse files Browse the repository at this point in the history
Added a message which shows up when there are no hyperlinks
  • Loading branch information
Gaurav Nelson committed Sep 4, 2017
2 parents 371cfa4 + 638f926 commit a75c7f0
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 a75c7f0

Please sign in to comment.