Skip to content

Commit

Permalink
fix: remove KubernetesResourceUtil.ensureHasPort unnecessary 'null' c…
Browse files Browse the repository at this point in the history
…heck before 'equals()' call
  • Loading branch information
ArunErram committed Feb 1, 2024
1 parent 16e07c5 commit 302b2b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ private static void ensureHasPort(Container container, ContainerPort port) {
for (ContainerPort cp : ports) {
String n1 = cp.getName();
String n2 = port.getName();
if (n1 != null && n2 != null && n1.equals(n2)) {
if (n1 != null && n1.equals(n2)) {
return;
}
Integer p1 = cp.getContainerPort();
Expand Down

0 comments on commit 302b2b7

Please sign in to comment.