From fdbb5ae44e2b82a36f7103b63e5c8a2041faea6c Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Thu, 18 Jun 2009 21:29:31 +0100 Subject: Style: avoid marching off the right margin --- libempathy/empathy-tp-chat.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'libempathy/empathy-tp-chat.c') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 8327c4f26..6810476d1 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -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; -- cgit v1.2.3