Skip to content

Commit eddca19

Browse files
Refactor(tree): remove unnecessary revision change (microsoft#25111)
## Description Removes a superfluous usage of `ChangeRebaser.changeRevision`. ## Breaking Changes None
1 parent 559402c commit eddca19

File tree

1 file changed

+1
-6
lines changed
  • packages/dds/tree/src/shared-tree-core

1 file changed

+1
-6
lines changed

packages/dds/tree/src/shared-tree-core/branch.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,7 @@ export class SharedTreeBranch<TEditor extends ChangeFamilyEditor, TChange> {
251251
// TODO: Pull this side effect out if/when more diverse ancestry walking helpers are available
252252
if (c !== commit) {
253253
const revision = this.mintRevisionTag();
254-
const inverse = this.changeFamily.rebaser.changeRevision(
255-
this.changeFamily.rebaser.invert(c, true, revision),
256-
revision,
257-
c.revision,
258-
);
259-
254+
const inverse = this.changeFamily.rebaser.invert(c, true, revision);
260255
inverses.push(tagRollbackInverse(inverse, revision, c.revision));
261256
return false;
262257
}

0 commit comments

Comments
 (0)