Skip to content

Commit

Permalink
boop
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed Jun 23, 2023
1 parent abd6764 commit c982f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ export class DepGraph<T> {
delete this.nodes[name];
delete this.outgoingEdges[name];
delete this.incomingEdges[name];
[this.incomingEdges, this.outgoingEdges].forEach(function (edgeList) {
Object.keys(edgeList).forEach(function (key) {
[this.incomingEdges, this.outgoingEdges].forEach((edgeList) => {
Object.keys(edgeList).forEach((key) => {
const idx = edgeList[key].indexOf(name);
if (idx >= 0) {
edgeList[key].splice(idx, 1);
}
}, this);
});
});
}
}
Expand Down

0 comments on commit c982f36

Please sign in to comment.