From 92ae6815d38f3118937e81ee41cfda0300db0774 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 22 Jun 2022 05:29:07 +0000 Subject: [PATCH 1/2] Replace short hand type conversions with JavaScript methods --- NUXT/store/channel/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NUXT/store/channel/index.js b/NUXT/store/channel/index.js index 7e7a9e0..679a8b9 100644 --- a/NUXT/store/channel/index.js +++ b/NUXT/store/channel/index.js @@ -52,8 +52,8 @@ export const actions = { const featuredSection = channel.contents.singleColumnBrowseResultsRenderer.tabs[0].tabRenderer.content.sectionListRenderer.contents.find( (i) => { - return !!i?.shelfRenderer?.content?.horizontalListRenderer - ?.items[0].gridChannelRenderer; + return Boolean(i?.shelfRenderer?.content?.horizontalListRenderer + ?.items[0].gridChannelRenderer); } ); state.featuredChannels = From 54241997d90cef8f82e1c4891c631a956b03d234 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 22 Jun 2022 05:29:15 +0000 Subject: [PATCH 2/2] Format code with prettier --- NUXT/store/channel/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NUXT/store/channel/index.js b/NUXT/store/channel/index.js index 679a8b9..5de9d53 100644 --- a/NUXT/store/channel/index.js +++ b/NUXT/store/channel/index.js @@ -52,8 +52,10 @@ export const actions = { const featuredSection = channel.contents.singleColumnBrowseResultsRenderer.tabs[0].tabRenderer.content.sectionListRenderer.contents.find( (i) => { - return Boolean(i?.shelfRenderer?.content?.horizontalListRenderer - ?.items[0].gridChannelRenderer); + return Boolean( + i?.shelfRenderer?.content?.horizontalListRenderer?.items[0] + .gridChannelRenderer + ); } ); state.featuredChannels =