From 485888b2d9e6da6c3323a903dbb0d16c6c50d76c Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 16 Jun 2022 22:37:36 -0700 Subject: [PATCH] list includes syntax --- server/finders/BookFinder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/finders/BookFinder.js b/server/finders/BookFinder.js index fb00219f..8fe3f647 100644 --- a/server/finders/BookFinder.js +++ b/server/finders/BookFinder.js @@ -214,7 +214,7 @@ class BookFinder { return this.search(provider, this.cleanTitleForCompares(title), this.cleanAuthorForCompares(author), isbn, asin, options) } - if (provider in ["google", "audible", "itunes"]) return books + if (["google", "audible", "itunes"].includes(provider)) return books return books.sort((a, b) => { return a.totalDistance - b.totalDistance