GUACAMOLE-38: Remove unnecessary null check.

Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/8ed356a7
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/8ed356a7
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/8ed356a7

Branch: refs/heads/master
Commit: 8ed356a7f2d96675a8751cc87c0e5ec06f3c8653
Parents: add78b9
Author: Nick Couchman <vn...@apache.org>
Authored: Sat Mar 24 22:06:21 2018 -0400
Committer: Nick Couchman <vn...@apache.org>
Committed: Fri Jun 1 13:40:51 2018 -0400

----------------------------------------------------------------------
 .../apache/guacamole/auth/quickconnect/rest/QuickConnectREST.java | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/8ed356a7/extensions/guacamole-auth-quickconnect/src/main/java/org/apache/guacamole/auth/quickconnect/rest/QuickConnectREST.java
----------------------------------------------------------------------
diff --git 
a/extensions/guacamole-auth-quickconnect/src/main/java/org/apache/guacamole/auth/quickconnect/rest/QuickConnectREST.java
 
b/extensions/guacamole-auth-quickconnect/src/main/java/org/apache/guacamole/auth/quickconnect/rest/QuickConnectREST.java
index 42e53a2..aef5ca3 100644
--- 
a/extensions/guacamole-auth-quickconnect/src/main/java/org/apache/guacamole/auth/quickconnect/rest/QuickConnectREST.java
+++ 
b/extensions/guacamole-auth-quickconnect/src/main/java/org/apache/guacamole/auth/quickconnect/rest/QuickConnectREST.java
@@ -91,9 +91,6 @@ public class QuickConnectREST {
     public String create(@FormParam("uri") String uri) 
             throws GuacamoleException {
 
-        if (directory == null)
-            throw new GuacamoleServerException("No connection directory 
available.");
-
         return directory.create(QCParser.getConfiguration(uri));
  
     }

Reply via email to