Unverified Commit d42ee8dc authored by Licho's avatar Licho Committed by GitHub

refactor: package uri wrong, and trivial optimization (#2062)

* refactor: package uri wrong, and trivial optimization * Spotless Apply --------- Co-authored-by: 's avatarleechor <leechor@users.noreply.github.com>
parent 99484619
...@@ -63,12 +63,10 @@ public enum GatewayType { ...@@ -63,12 +63,10 @@ public enum GatewayType {
} }
public static GatewayType getSessionType(String value) { public static GatewayType getSessionType(String value) {
switch (value) { if (value.equals("Kubernetes")) {
case "Kubernetes":
return GatewayType.KUBERNETES_SESSION; return GatewayType.KUBERNETES_SESSION;
default:
return GatewayType.YARN_SESSION;
} }
return GatewayType.YARN_SESSION;
} }
public boolean equalsValue(String type) { public boolean equalsValue(String type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment