From c8bf62b89b5395b36ae50f5fbf7a63fc92506be9 Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Mon, 22 Jul 2024 12:54:50 +0100 Subject: [PATCH] assemble --- .../pegasys/teku/infrastructure/ssz/schema/TreeNodeAssert.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infrastructure/ssz/src/test/java/tech/pegasys/teku/infrastructure/ssz/schema/TreeNodeAssert.java b/infrastructure/ssz/src/test/java/tech/pegasys/teku/infrastructure/ssz/schema/TreeNodeAssert.java index 48806158419..7ed33dbc2f9 100644 --- a/infrastructure/ssz/src/test/java/tech/pegasys/teku/infrastructure/ssz/schema/TreeNodeAssert.java +++ b/infrastructure/ssz/src/test/java/tech/pegasys/teku/infrastructure/ssz/schema/TreeNodeAssert.java @@ -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));