From ab1d6be61c94e8cee2e301065b3df6b4de9457fa Mon Sep 17 00:00:00 2001 From: Ra0R Date: Thu, 26 Sep 2024 14:32:13 +0200 Subject: [PATCH] Removed unnecessary if clause --- next/lib/strapi/fetchContentType.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/next/lib/strapi/fetchContentType.ts b/next/lib/strapi/fetchContentType.ts index 64ec2ca..c4ac186 100644 --- a/next/lib/strapi/fetchContentType.ts +++ b/next/lib/strapi/fetchContentType.ts @@ -44,11 +44,6 @@ export default async function fetchContentType( throw new Error(`Failed to fetch data from Strapi (url=${url.toString()}, status=${response.status})`); } const jsonData: StrapiResponse = await response.json(); - - if (jsonData.data.length === 0) { - - } - return spreadData ? spreadStrapiData(jsonData) : jsonData; } catch (error) { // Log any errors that occur during the fetch process