]> git.0d.be Git - empathy.git/commitdiff
Style: avoid marching off the right margin
authorWill Thompson <will.thompson@collabora.co.uk>
Thu, 18 Jun 2009 20:29:31 +0000 (21:29 +0100)
committerWill Thompson <will.thompson@collabora.co.uk>
Fri, 19 Jun 2009 09:04:41 +0000 (10:04 +0100)
libempathy/empathy-tp-chat.c

index 8327c4f26160c0c6bdfe749311f8f50c40fbb626..6810476d19d5127d60bcc60bcbd04eb0e1a909ad 100644 (file)
@@ -886,17 +886,18 @@ chat_lookup_contact (EmpathyTpChat *chat,
        for (l = priv->members; l; l = l->next) {
                EmpathyContact *c = l->data;
 
-               if (empathy_contact_get_handle (c) == handle) {
-                       if (remove) {
-                               /* Caller takes the reference. */
-                               priv->members = g_list_delete_link (
-                                       priv->members, l);
-                       } else {
-                               g_object_ref (c);
-                       }
+               if (empathy_contact_get_handle (c) != handle) {
+                       continue;
+               }
 
-                       return c;
+               if (remove) {
+                       /* Caller takes the reference. */
+                       priv->members = g_list_delete_link (priv->members, l);
+               } else {
+                       g_object_ref (c);
                }
+
+               return c;
        }
 
        return NULL;