[empathy/mc5: 380/483] Remove double check for connection == NULL



commit 9b497ff832bbffab66eb193ebae190161db55757
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Mon Aug 17 13:11:46 2009 +0100

    Remove double check for connection == NULL

 libempathy-gtk/empathy-contact-dialogs.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c
index ad466da..5c77a78 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]