]> www.infradead.org Git - pidgin-chime.git/commitdiff
chime-connection: remove useless check
authorIgnacio Casal Quinteiro <qignacio@amazon.com>
Fri, 22 Nov 2019 11:43:40 +0000 (12:43 +0100)
committerIgnacio Casal Quinteiro <qignacio@amazon.com>
Fri, 22 Nov 2019 11:43:40 +0000 (12:43 +0100)
The server variable is checked right before and set to SIGNIN_DEFAULT
if needed.

chime/chime-connection.c

index 9be4eeeaf8283c6e8ecd0444641022453de8fa57..50fcaeaa41d809d85dcfe8f8053225f7c9c88d13 100644 (file)
@@ -390,7 +390,7 @@ chime_connection_new(const gchar *email, const gchar *server,
 
        return g_object_new (CHIME_TYPE_CONNECTION,
                             "account-email", email,
-                            "server", server ? server : SIGNIN_DEFAULT,
+                            "server", server,
                             "device-token", device_token,
                             "session-token", session_token,
                             NULL);