Skip to content

Commit

Permalink
Cleaning the code
Browse files Browse the repository at this point in the history
  • Loading branch information
elielnfinic committed Nov 14, 2024
1 parent 2137b77 commit 91546e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/object/src/hashgraph/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ export class HashGraph {
if (
!deps.every((dep) => this.forwardEdges.has(dep) || this.vertices.has(dep))
) {
const error = new Error("Invalid dependency detected.");
error.name = "InvalidDependencyError";
throw error;
console.error("Invalid dependency detected.");
return "";
}

const vertex: Vertex = {
Expand Down
1 change: 1 addition & 0 deletions packages/object/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class TopologyObject implements ITopologyObject {
if (!vertex.operation) {
continue;
}

this.hashGraph.addVertex(
vertex.operation,
vertex.dependencies,
Expand Down

0 comments on commit 91546e9

Please sign in to comment.