Skip to content

Commit

Permalink
Fix PMD. (#15853)
Browse files Browse the repository at this point in the history
  • Loading branch information
davinchia authored Aug 22, 2022
1 parent b754465 commit 2fcdff0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ private Container getMainContainerFromPodDefinition() {
final Optional<Container> containerOptional = podDefinition.getSpec()
.getContainers()
.stream()
.filter(c -> c.getName().contentEquals(MAIN_CONTAINER_NAME))
.filter(c -> MAIN_CONTAINER_NAME.equals(c.getName()))
.findFirst();
if (containerOptional.isEmpty()) {
LOGGER.warn(String.format("Could not find main container definition for pod: %s", podDefinition.getMetadata().getName()));
Expand Down

0 comments on commit 2fcdff0

Please sign in to comment.