Skip to content

Commit

Permalink
Move variable declaration down
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Dec 6, 2018
1 parent ea33c88 commit 8a21dec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rclcpp_action/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ ServerBase::ServerBase(
: pimpl_(new ServerBaseImpl(
node_clock->get_clock(), node_logging->get_logger().get_child("rclcpp_action")))
{
rcl_ret_t ret;

auto deleter = [node_base](rcl_action_server_t * ptr)
{
if (nullptr != ptr) {
Expand All @@ -100,7 +98,7 @@ ServerBase::ServerBase(
rcl_node_t * rcl_node = node_base->get_rcl_node_handle();
rcl_clock_t * rcl_clock = pimpl_->clock_->get_clock_handle();

ret = rcl_action_server_init(
rcl_ret_t ret = rcl_action_server_init(
pimpl_->action_server_.get(), rcl_node, rcl_clock, type_support, name.c_str(), &options);

if (RCL_RET_OK != ret) {
Expand Down

0 comments on commit 8a21dec

Please sign in to comment.