weizhouapache commented on code in PR #12135:
URL: https://github.com/apache/cloudstack/pull/12135#discussion_r2568599887
##########
services/console-proxy/rdpconsole/src/main/java/common/Client.java:
##########
@@ -299,16 +299,16 @@ private Element
setMainElementAndAddressBasedOnProtocol(Protocol protocol, SSLSt
private Protocol parseOptions(String[] args) {
String protocolName = (args.length > 0) ? args[0] : "";
- Protocol protocol = Protocol.NONE;
+ Protocol protocol;
Review Comment:
can use this instead
```
Protocol protocol = EnumUtils.getEnumIgnoreCase(Protocol.class,
protocolName, Protocol.NONE);
```
btw: no issues with the class, it is not used ...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]