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

Commit

Permalink
code fixes for no results
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Nelson committed Sep 8, 2017
1 parent 75ccdec commit 57711f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asciidoc-link-check
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ stream.on('data', function (chunk) {
asciidoc += chunk.toString();
}).on('end', function () {
asciidocLinkCheck(asciidoc, opts, function (err, results) {
if ((results.length === 0) && !(error)) {
if (results.length === 0) {
console.log(chalk.yellow('No hyperlinks found!'))
}
results.forEach(function (result) {
Expand Down

0 comments on commit 57711f0

Please sign in to comment.