Skip to content

Commit

Permalink
prevent adding one dependency twice
Browse files Browse the repository at this point in the history
  • Loading branch information
tpimh committed Apr 15, 2024
1 parent b420b71 commit 8461ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create-matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ directories.forEach(library => {
let info = library;
const deps = [];
dependencies.forEach((dependency) => {
if (dependant.get(dependency))
if (dependant.get(dependency) && !deps.includes(dependency))
deps.push(dependency);
});
deps.forEach(dependency => info = dependency + " " + info);
Expand Down

0 comments on commit 8461ae7

Please sign in to comment.