From: Sjoerd Simons Date: Mon, 17 Aug 2009 12:11:46 +0000 (+0100) Subject: Remove double check for connection == NULL X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=9b497ff832bbffab66eb193ebae190161db55757 Remove double check for connection == NULL --- diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c index ad466da5..5c77a787 100644 --- a/libempathy-gtk/empathy-contact-dialogs.c +++ b/libempathy-gtk/empathy-contact-dialogs.c @@ -337,10 +337,6 @@ can_add_contact_to_account (EmpathyAccount *account, if (connection == NULL) return FALSE; - if (connection == NULL) { - return FALSE; - } - contact_manager = empathy_contact_manager_dup_singleton (); result = empathy_contact_manager_get_flags_for_connection ( contact_manager, connection) & EMPATHY_CONTACT_LIST_CAN_ADD;