Skip to content

Commit

Permalink
Remove empty clusters.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeychernyshev committed Apr 19, 2024
1 parent 554463f commit 0597f7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/clusterize.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function clusterize(files, number_of_blocks) {
});
});

return await clusters;
return clusters.filter((cluster) => Array.isArray(cluster));
}

export default clusterize;
1 change: 1 addition & 0 deletions test/gitterra_large_and_old.json

Large diffs are not rendered by default.

0 comments on commit 0597f7e

Please sign in to comment.