Skip to content

Commit ba730d0

Browse files
committed
spotbug fix
1 parent fa0797f commit ba730d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/datastructures/heaps/LeonardoHeap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private void maxHeapifyTree(int rootNodeIndex, int currentLevel) {
7272

7373
private void shiftRootAndRestoreHeap() {
7474

75-
if (heap.size() == 0) {
75+
if (heap.isEmpty()) {
7676
return;
7777
}
7878

0 commit comments

Comments
 (0)