Fix indentation Fix not returning the contact in tp_contact_list_find()
[empathy.git] / libempathy / empathy-tp-contact-list.c
index 43c317e..60a7fd5 100644 (file)
@@ -447,17 +447,14 @@ tp_contact_list_find (EmpathyContactList *list,
                      const gchar        *id)
 {
        EmpathyTpContactListPriv *priv;
-       GossipContact            *contact;
 
        g_return_val_if_fail (EMPATHY_IS_TP_CONTACT_LIST (list), NULL);
 
        priv = GET_PRIV (list);
 
-       contact = g_hash_table_find (priv->contacts,
-                                    (GHRFunc) tp_contact_list_find_foreach,
-                                    (gchar*) id);
-
-       return NULL;
+       return g_hash_table_find (priv->contacts,
+                                 (GHRFunc) tp_contact_list_find_foreach,
+                                 (gchar*) id);
 }
 
 static void