Skip to content

Commit

Permalink
assemble
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Jul 22, 2024
1 parent 78b6287 commit 6956fdb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ private void assertTreeEqual(final TreeNode actual, final TreeNode expected, fin
assertThat(actual.hashTreeRoot())
.describedAs("zero branch node root at gIndex %s", gIndex)
.isEqualTo(expected.hashTreeRoot());
} else if (actual instanceof BranchNode) {
final BranchNode actualBranch = (BranchNode) actual;
} else if (actual instanceof BranchNode actualBranch) {
final BranchNode expectedBranch = (BranchNode) expected;
assertTreeEqual(
actualBranch.left(), expectedBranch.left(), GIndexUtil.gIdxLeftGIndex(gIndex));
Expand Down

0 comments on commit 6956fdb

Please sign in to comment.