Skip to content

Commit

Permalink
Fix formatting style and remove unnecessary whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
koczadly committed Sep 7, 2020
1 parent bae7031 commit 2441753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nano/core_test/fakes/work_peer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class work_peer_connection : public std::enable_shared_from_this<work_peer_conne
ptree::write_json (ostream, error_l);
beast::ostream (response.body ()) << ostream.str ();
}

void handle_cancel ()
{
on_cancel ();
Expand Down
3 changes: 1 addition & 2 deletions nano/node/json_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,11 @@ void nano::json_handler::process_request (bool unsafe_a)

void nano::json_handler::response_errors ()
{
// Return an error code if no response data was given
if (!ec && response_l.empty ())
{
// Return an error code if no response data was given
ec = nano::error_rpc::empty_response;
}

if (ec)
{
boost::property_tree::ptree response_error;
Expand Down

0 comments on commit 2441753

Please sign in to comment.