mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-03 18:49:33 -04:00
removed double-return
This commit is contained in:
parent
ef21db0a0a
commit
f1ccfb4d57
1 changed files with 3 additions and 6 deletions
|
@ -708,10 +708,8 @@ std::shared_ptr<RsGxsMsgMetaData> RsDataService::locked_getMsgMeta(RetroCursor &
|
||||||
|
|
||||||
if(ok)
|
if(ok)
|
||||||
return msgMeta;
|
return msgMeta;
|
||||||
else
|
|
||||||
return nullptr;
|
|
||||||
|
|
||||||
return NULL;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -750,10 +748,9 @@ RsNxsMsg* RsDataService::locked_getMessage(RetroCursor &c)
|
||||||
|
|
||||||
if(ok)
|
if(ok)
|
||||||
return msg;
|
return msg;
|
||||||
else
|
|
||||||
delete msg;
|
|
||||||
|
|
||||||
return NULL;
|
delete msg;
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
int RsDataService::storeMessage(const std::list<RsNxsMsg*>& msg)
|
int RsDataService::storeMessage(const std::list<RsNxsMsg*>& msg)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue