From 985c61c624c7304783266c9f79e602f26f2887fd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 13 Aug 2019 11:39:01 +0300 Subject: useless checks removed --- protocols/Sametime/src/userlist.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'protocols/Sametime') diff --git a/protocols/Sametime/src/userlist.cpp b/protocols/Sametime/src/userlist.cpp index a16ed8d103..8b892d85d5 100644 --- a/protocols/Sametime/src/userlist.cpp +++ b/protocols/Sametime/src/userlist.cpp @@ -65,15 +65,7 @@ MCONTACT CSametimeProto::AddContact(mwSametimeUser* user, bool temporary) bool new_contact = false; if (!hContact) { hContact = db_add_contact(); - if (!hContact) { - debugLogW(L"AddContact(): Failed to create Sametime contact"); - return NULL; ///TODO error handling - } - if (Proto_AddToContact(hContact, m_szModuleName) != 0) { - db_delete_contact(hContact); - debugLogW(L"AddContact(): Failed to register Sametime contact"); - return NULL; ///TODO error handling - } + Proto_AddToContact(hContact, m_szModuleName); new_contact = true; } else if (!temporary) { -- cgit v1.2.3