From e0245f6a561e3e5e48fcda1ef459dd81d20adb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Sat, 8 May 2021 17:51:31 +0200 Subject: [PATCH] Fix: Eslint error --- dist/plex-meets-homeassistant.js | 1 + src/plex-meets-homeassistant.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 4b99c93..1ad15af 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19603,6 +19603,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { if (this.data[this.config.libraryName]) { // eslint-disable-next-line consistent-return const searchValues = lodash.split(this.searchValue, ' '); + // eslint-disable-next-line consistent-return lodash.forEach(this.data[this.config.libraryName], (movieData) => { if (!this.maxCount || count < this.maxCount) { count += 1; diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 3ac85db..3e2d135 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -225,6 +225,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { if (this.data[this.config.libraryName]) { // eslint-disable-next-line consistent-return const searchValues = _.split(this.searchValue, ' '); + // eslint-disable-next-line consistent-return _.forEach(this.data[this.config.libraryName], (movieData: Record) => { if (!this.maxCount || count < this.maxCount) { count += 1;