Skip to content

Commit

Permalink
chore: small change to check commit signing
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Sep 8, 2023
1 parent 3e16647 commit 1db09b9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ void verifyPingPongClusterServiceVersion() throws FileNotFoundException {
assertEquals(1, permissions.size());
}

@SuppressWarnings("unchecked")
<T extends HasMetadata> Optional<T> findFirst(KubernetesList list, Class<T> t) {
return (Optional<T>) list.getItems().stream()
.filter(i -> t.isInstance(i))
.filter(t::isInstance)
.findFirst();
}

Expand Down

0 comments on commit 1db09b9

Please sign in to comment.