Skip to content

Commit a47c715

Browse files
Use new java syntax
Signed-off-by: miguelfigueiredo <miguelsfigueiredo90@gmail.com>
1 parent 3f48e45 commit a47c715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

command/src/com/mirth/connect/cli/CommandLineInterface.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ private void runShell(String server, String user, String password, String script
184184
try {
185185
loginStatus = client.login(user, password);
186186
} catch (UnauthorizedException ex) {
187-
if (ex.getResponse() instanceof LoginStatus) {
188-
loginStatus = (LoginStatus) ex.getResponse();
187+
if (ex.getResponse() instanceof LoginStatus status) {
188+
loginStatus = status;
189189
}
190190
else {
191191
error("Could not login to server.", ex);

0 commit comments

Comments
 (0)