Skip to content

Commit

Permalink
Clean up codes
Browse files Browse the repository at this point in the history
  • Loading branch information
JOOHOJANG committed Oct 23, 2024
1 parent 6d5ece1 commit c4dea81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/src/document/change/change_id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class ChangeID {
}

/**
* `setVersionVector` sets the given actor.
* `setVersionVector` sets the given version vector.
*/
public setVersionVector(versionVector: VersionVector): ChangeID {
return new ChangeID(
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/document/time/version_vector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class VersionVector {
public afterOrEqual(other: TimeTicket) {
const lamport = this.vector.get(other.getActorID());

if (!lamport) {
if (lamport === undefined) {
return false;
}

Expand All @@ -122,7 +122,7 @@ export class VersionVector {
for (const [actorID] of versionVector) {
const lamport = this.vector.get(actorID);

if (lamport) {
if (lamport !== undefined) {
filtered.set(actorID, lamport);
}
}
Expand Down

0 comments on commit c4dea81

Please sign in to comment.