Skip to content

Commit 7da0f98

Browse files
committed
fix: lint error handling
1 parent 1b71860 commit 7da0f98

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/dynamixel_hardware_interface.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -870,10 +870,8 @@ void DynamixelHardware::CalcJointToTransmission()
870870

871871
for (size_t i = 0; i < num_of_transmissions_; i++) {
872872
if(hdl_trans_commands_.at(i).interface_name_vec.size() > GOAL_CURRENT_INDEX &&
873-
hdl_trans_commands_.at(i).interface_name_vec.at(GOAL_CURRENT_INDEX) == "Goal Current")
874-
{
875-
for(size_t j = 0; j < hdl_joint_commands_.size(); j++)
876-
{
873+
hdl_trans_commands_.at(i).interface_name_vec.at(GOAL_CURRENT_INDEX) == "Goal Current") {
874+
for(size_t j = 0; j < hdl_joint_commands_.size(); j++) {
877875
if(hdl_joint_commands_.at(j).interface_name_vec.size() > GOAL_CURRENT_INDEX &&
878876
hdl_joint_commands_.at(j).interface_name_vec.at(GOAL_CURRENT_INDEX) ==
879877
hardware_interface::HW_IF_EFFORT)

0 commit comments

Comments
 (0)