Skip to content
Snippets Groups Projects
Commit f3c339b2 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: check packageFiles before length

parent 1fb95e85
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ async function extractAllDependencies(config) {
const managerConfig = getManagerConfig(config, manager);
managerConfig.manager = manager;
const packageFiles = await getManagerPackageFiles(config, managerConfig);
if (packageFiles.length) {
if (packageFiles && packageFiles.length) {
fileCount += packageFiles.length;
logger.info(`Found ${manager} package files`);
extractions[manager] = packageFiles;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment