diff options
author | George Hazan <ghazan@miranda.im> | 2019-08-13 11:39:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-08-13 11:39:01 +0300 |
commit | 985c61c624c7304783266c9f79e602f26f2887fd (patch) | |
tree | d564daacf70417f2756137b6b86a3ee33025090e /protocols/Sametime | |
parent | 23f1148da6fd87d759b69d6f3865384672f78974 (diff) |
useless checks removed
Diffstat (limited to 'protocols/Sametime')
-rw-r--r-- | protocols/Sametime/src/userlist.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
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) {
|