Skip to content

Commit c5676bc

Browse files
committed
Cleanup code
1 parent b4380f7 commit c5676bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kala-base/src/main/java/kala/function/Predicates.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static <T> Predicate<T> of(Predicate<? extends T> predicate) {
7272

7373
public static <T> @NotNull Predicate<T> isInstance(@NotNull Class<? extends T> type) {
7474
Objects.requireNonNull(type);
75-
return type == Object.class ? isNotNull() : new IsInstance<>(type);
75+
return new IsInstance<>(type);
7676
}
7777

7878
@SafeVarargs

0 commit comments

Comments
 (0)