diff --git a/src/utils/files.ts b/src/utils/files.ts index ed6931d..b1b15c8 100644 --- a/src/utils/files.ts +++ b/src/utils/files.ts @@ -33,10 +33,8 @@ export const getFilesWithExtension = ( if (fs.statSync(absolute).isDirectory()) { getFiles(absolute, ext) - } else { - if (ext.includes(getFileExtension(absolute))) { - files.push(absolute) - } + } else if (ext.includes(getFileExtension(absolute))) { + files.push(absolute) } } }