From 5e1fedf71489e8f3127c61acad9d8606647bbcce Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 31 Oct 2024 21:11:33 +0900 Subject: [PATCH] Remove redundant else --- .../src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java index 13c7c6596..d1050bf8c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java @@ -106,9 +106,7 @@ public static Optional extractQueryIdIfPresent(String path, String query || tokens[1].equals("partialCancel")) { return Optional.of(tokens[2]); } - else { - return Optional.of(tokens[1]); - } + return Optional.of(tokens[1]); } } else if (path.startsWith(TRINO_UI_PATH)) {