Skip to content

Commit

Permalink
Changed to use function syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBone committed Sep 11, 2018
1 parent e36f55a commit f34230c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.js
Expand Up @@ -103,8 +103,8 @@ function parsePdfs(database, url) {
let pdfParser = new pdf2json();
request({ url: pdfUrl, encoding: null }).pipe(pdfParser);
pdfParser.on("pdfParser_dataError", error => { console.error(error); });
pdfParser.on("error", () => { });
pdfParser.on("finish", () => { });
pdfParser.on("error", function() { });
pdfParser.on("finish", function() { });
pdfParser.on("pdfParser_dataReady", pdf => {
// Convert the JSON representation of the PDF into a collection of PDF rows.

Expand Down

0 comments on commit f34230c

Please sign in to comment.