From 6d00d0ae6a37bc39562421abf73301a33d2d26b9 Mon Sep 17 00:00:00 2001 From: David Ashby Date: Mon, 15 May 2017 21:47:07 -0400 Subject: [PATCH] fix syntax --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ddc5c51..cf082bd 100644 --- a/index.js +++ b/index.js @@ -130,7 +130,7 @@ function normalizeGoogleData(book) { return { title: book.subtitle ? book.title + ': ' + book.subtitle : book.title, author: _.join(book.authors, ', '), - authorLast: _.join(book.authors ? _.lowerCase(_.head(_.reverse(_.split(book.authors[0], ' ')))), '') : '', + authorLast: book.authors ? _.join(_.lowerCase(_.head(_.reverse(_.split(book.authors[0], ' ')))), '') : '', "isbn-10": _.find(book.industryIdentifiers, { type: "ISBN_10" }) ? _.find(book.industryIdentifiers, { type: "ISBN_10" }).identifier : '',