From 1156875fefd48c91d053763f899d618ea7e41cf2 Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Wed, 3 Jan 2024 22:03:43 +0000 Subject: [PATCH] GUACAMOLE-1896: Clean up unreachable code. --- .../frontend/src/app/client/controllers/clientController.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/guacamole/src/main/frontend/src/app/client/controllers/clientController.js b/guacamole/src/main/frontend/src/app/client/controllers/clientController.js index 920d79b3ae..5452f906fa 100644 --- a/guacamole/src/main/frontend/src/app/client/controllers/clientController.js +++ b/guacamole/src/main/frontend/src/app/client/controllers/clientController.js @@ -493,8 +493,7 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams // Update available connection parameters, if the updated arguments are // for the current focused client - otherwise ignore them if ($scope.focusedClient && $scope.focusedClient === focusedClient) - $scope.menu.connectionParameters = focusedClient ? - ManagedClient.getArgumentModel(focusedClient) : {}; + $scope.menu.connectionParameters = ManagedClient.getArgumentModel(focusedClient); });