Skip to content

Commit

Permalink
rpc_json: remove erroneous array wrapping of empty response
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed Apr 30, 2021
1 parent 5e32b4c commit a73dcfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/rpc_json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ object_to_json(const torrent::Object& object) {
return result;
}
default:
return json{ 0 };
return 0;
}

throw JsonRpcException(-32600, "not implemented");
Expand Down

0 comments on commit a73dcfb

Please sign in to comment.