Skip to content

Commit

Permalink
Merge pull request #194 from ecmwf-actions/fix/dep-tree
Browse files Browse the repository at this point in the history
Check dep tree has deps key
  • Loading branch information
figi44 committed Feb 20, 2024
2 parents c580c6b + d91ed79 commit 80ae7fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const getDependenciesFromTree = (
if (!dependencies) {
dependencies = [];
}
if (tree[repo] == null) {
if (tree[repo] == null || !("deps" in tree[repo])) {
return dependencies;
}
for (const dep of tree[repo].deps) {
Expand Down

0 comments on commit 80ae7fb

Please sign in to comment.