mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
removed double-return
This commit is contained in:
parent
ef21db0a0a
commit
f1ccfb4d57
@ -708,10 +708,8 @@ std::shared_ptr<RsGxsMsgMetaData> RsDataService::locked_getMsgMeta(RetroCursor &
|
||||
|
||||
if(ok)
|
||||
return msgMeta;
|
||||
else
|
||||
return nullptr;
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
@ -750,10 +748,9 @@ RsNxsMsg* RsDataService::locked_getMessage(RetroCursor &c)
|
||||
|
||||
if(ok)
|
||||
return msg;
|
||||
else
|
||||
delete msg;
|
||||
|
||||
return NULL;
|
||||
delete msg;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int RsDataService::storeMessage(const std::list<RsNxsMsg*>& msg)
|
||||
|
Loading…
Reference in New Issue
Block a user