From 06ea546f440669c85a742d678b544bf191b06745 Mon Sep 17 00:00:00 2001 From: "Ricardo L. Stephen" <43506361+ricardolstephen@users.noreply.github.com> Date: Fri, 5 Jun 2020 11:49:40 -0700 Subject: [PATCH] Remove unnecessary string formatting (#112) --- .../http_action/config/PerformanceAnalyzerResourceProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/http_action/config/PerformanceAnalyzerResourceProvider.java b/src/main/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/http_action/config/PerformanceAnalyzerResourceProvider.java index 816e8e5e..d99aeb23 100644 --- a/src/main/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/http_action/config/PerformanceAnalyzerResourceProvider.java +++ b/src/main/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/http_action/config/PerformanceAnalyzerResourceProvider.java @@ -195,7 +195,7 @@ public URL getAgentUri(RestRequest request) throws IOException { // Add Handler whenever add new redirectAgent path if (SUPPORTED_REDIRECTIONS.contains(redirectEndpoint)) { - String uri = String.format(redirectBasePath + request.uri().split(AGENT_PATH)[1]); + String uri = redirectBasePath + request.uri().split(AGENT_PATH)[1]; return new URL(uri); } return null;