Skip to content

Commit

Permalink
Merge pull request #7 from Ra0R/patch-1
Browse files Browse the repository at this point in the history
Removed unnecessary if-clause
  • Loading branch information
Mcastres authored Oct 2, 2024
2 parents 0e4db7d + ab1d6be commit 058973e
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 058973e

Please sign in to comment.