Skip to content

Commit

Permalink
Removed unnecessary if clause
Browse files Browse the repository at this point in the history
  • Loading branch information
Ra0R authored Sep 26, 2024
1 parent f01a146 commit ab1d6be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions next/lib/strapi/fetchContentType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab1d6be

Please sign in to comment.