Small cleanups/fixes.

This commit is contained in:
JoelKatz
2012-01-05 16:54:55 -08:00
parent c1213b20c6
commit 2e3a48dcea
8 changed files with 18 additions and 16 deletions

View File

@@ -229,11 +229,8 @@ std::string JSONRPCRequest(const std::string& strMethod, const Json::Value& para
std::string JSONRPCReply(const Json::Value& result, const Json::Value& error, const Json::Value& id)
{
Json::Value reply;
if (!error.isNull())
reply["result"]=Json::Value();
else
reply["result"]=result;
Json::Value reply(Json::objectValue);
reply["result"]=result;
reply["error"]=error;
reply["id"]=id;
Json::FastWriter writer;