diff --git a/apps/web/app/actions/analyzeCode.ts b/apps/web/app/actions/analyzeCode.ts index 8ef56cc..10fab26 100644 --- a/apps/web/app/actions/analyzeCode.ts +++ b/apps/web/app/actions/analyzeCode.ts @@ -149,7 +149,7 @@ export async function analyzeCode(githubUrl: string): Promise { codeData = await res.text(); } - if (!codeData || codeData.trim() === '') { + if (!codeData || codeData.trim().length === 0) { return { success: false, error: 'The fetched file is empty.' }; }