Skip to content

Commit ab2ea61

Browse files
committed
Fixed linter errors
1 parent c506dbf commit ab2ea61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/thealgorithms/searches/SentinelLinearSearch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ private <T extends Comparable<T>> int findNull(T[] array) {
9696
}
9797
return -1;
9898
}
99-
}
99+
}

src/test/java/com/thealgorithms/searches/SentinelLinearSearchTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,4 @@ void testSentinelLinearSearchKeyEqualsLastElement() {
222222
Integer key = 3; // Key equals last element
223223
assertEquals(2, sentinelLinearSearch.find(array, key), "Should find the first occurrence at index 2, not the last.");
224224
}
225-
}
225+
}

0 commit comments

Comments
 (0)