Skip to content

Commit

Permalink
Merge pull request #1 from moustachedelait/callback_bad_results
Browse files Browse the repository at this point in the history
Hit callback with null for searches that don't lead to anything useful
  • Loading branch information
moustachedelait authored Apr 21, 2017
2 parents 2588896 + 719cd82 commit 8e57e5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/fetch_text.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ var fetch = function(page_identifier, lang_or_wikiid, cb) {
return;
}
cb(text);
} else {
cb(null);
}
}
});
Expand Down

0 comments on commit 8e57e5f

Please sign in to comment.