From e61f6f4ca233ac0852baabd867ef1b47db10d5ed Mon Sep 17 00:00:00 2001 From: Adam Undus Date: Wed, 14 Oct 2020 10:14:01 -0400 Subject: [PATCH] lint --- booklist.js | 2 +- ebooks/book.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/booklist.js b/booklist.js index 1494af6..fafd746 100644 --- a/booklist.js +++ b/booklist.js @@ -15,7 +15,7 @@ const displayUsingApi = false; }) } - function makeListItem(book) { + function makeListItem (book) { const a = `

${book.title}

` const li = `
  • ${a}Author: ${book.author}
  • ` console.log(li) diff --git a/ebooks/book.js b/ebooks/book.js index b7ed353..0456844 100644 --- a/ebooks/book.js +++ b/ebooks/book.js @@ -46,7 +46,7 @@ console.log(localStorage.getItem('booklist')) }) - function removeBook() { + function removeBook () { const newlist = JSON.parse(localStorage.getItem('booklist')) delete newlist[bookId] localStorage.setItem('booklist', JSON.stringify(newlist))