Skip to content

Commit d1dbe3c

Browse files
committed
modified styling in if
1 parent 0137b11 commit d1dbe3c

File tree

1 file changed

+2
-4
lines changed
  • src/main/java/com/thealgorithms/datastructures/trees

1 file changed

+2
-4
lines changed

src/main/java/com/thealgorithms/datastructures/trees/Treap.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,9 @@ private TreapNode searchVal(TreapNode root, int value) {
258258

259259
if (root.value == value) {
260260
return root;
261-
}
262-
else if (root.value < value) {
261+
} else if (root.value < value) {
263262
return searchVal(root.right, value);
264-
}
265-
else {
263+
} else {
266264
return searchVal(root.left, value);
267265
}
268266
}

0 commit comments

Comments
 (0)