Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magnified103 committed Dec 17, 2024
1 parent b7ab721 commit e254b62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/object/src/hashgraph/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,12 @@ export class HashGraph {
* If the vertex already exists, return the hash of the existing vertex.
* Throws an error if any of the dependencies are not present in the hashgraph.
*/
addVertex(operation: Operation, deps: Hash[], nodeId: string, timestamp?: number): Hash {
addVertex(
operation: Operation,
deps: Hash[],
nodeId: string,
timestamp?: number,
): Hash {
const hash = computeHash(nodeId, operation, deps);
if (this.vertices.has(hash)) {
return hash; // Vertex already exists
Expand Down

0 comments on commit e254b62

Please sign in to comment.