Fix: Eslint error

pull/16/head
Juraj Nyíri 4 years ago
parent d77e227bd9
commit e0245f6a56

@ -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;

@ -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<string, any>) => {
if (!this.maxCount || count < this.maxCount) {
count += 1;

Loading…
Cancel
Save