Skip to content

Commit

Permalink
reverting ternary operator as not needed for split
Browse files Browse the repository at this point in the history
  • Loading branch information
azakrzewski-hy committed Jan 22, 2025
1 parent 05c1b76 commit 9d2c511
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public class ContainerSupport
{
public static final String HXI_PREDICTION_BATCHES_ENDPOINT = "/prediction-batches";
public static final String REPOSITORY_PREDICTION_ENDPOINT = "/api/-default-/private/hxi/versions/1/nodes/%s/predictions";
public static final String USER_AGENT_REGEX = "ACS HXI Connector/" + DockerTags.getHxiConnectorTag() + " ACS/" +
(DockerTags.getRepositoryTag().contains("-") ? DockerTags.getRepositoryTag().split("-")[0] : DockerTags.getRepositoryTag()) + " .*";
public static final String USER_AGENT_REGEX = "ACS HXI Connector/" + DockerTags.getHxiConnectorTag() + " ACS/" + DockerTags.getRepositoryTag().split("-")[0] + " .*";
public static final String DISCOVERY_ENDPOINT = "/api/discovery";
private static ContainerSupport instance;
private final Session session;
Expand Down

0 comments on commit 9d2c511

Please sign in to comment.