Skip to content

Commit 5e1fedf

Browse files
oneonestarmosabua
authored andcommitted
Remove redundant else
1 parent 2add137 commit 5e1fedf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ public static Optional<String> extractQueryIdIfPresent(String path, String query
106106
|| tokens[1].equals("partialCancel")) {
107107
return Optional.of(tokens[2]);
108108
}
109-
else {
110-
return Optional.of(tokens[1]);
111-
}
109+
return Optional.of(tokens[1]);
112110
}
113111
}
114112
else if (path.startsWith(TRINO_UI_PATH)) {

0 commit comments

Comments
 (0)