Skip to content

Commit cac6b07

Browse files
committed
fix(driver): improve readability in deactivate method by adjusting braces
1 parent 2e21645 commit cac6b07

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

canopen_402_driver/include/canopen_402_driver/node_interfaces/node_canopen_402_driver_impl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,11 @@ template <class NODETYPE>
444444
void NodeCanopen402Driver<NODETYPE>::deactivate(bool called_from_base)
445445
{
446446
NodeCanopenProxyDriver<NODETYPE>::deactivate(false);
447-
if(timer_ != nullptr){
448-
timer_->cancel();
447+
if (timer_ != nullptr)
448+
{
449+
timer_->cancel();
449450
}
450451
this->exec_->post([this]() { motor_.reset(); });
451-
452452
}
453453

454454
template <class NODETYPE>

0 commit comments

Comments
 (0)