Skip to content

Commit 8628144

Browse files
committed
fix formatting
1 parent 3255499 commit 8628144

File tree

1 file changed

+3
-1
lines changed
  • joint_trajectory_controller/include/joint_trajectory_controller

1 file changed

+3
-1
lines changed

joint_trajectory_controller/include/joint_trajectory_controller/trajectory.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ inline std::vector<size_t> mapping(const T & t1, const T & t2)
135135
std::vector<size_t> mapping_vector(t1.size()); // Return value
136136
for (auto t1_it = t1.begin(); t1_it != t1.end(); ++t1_it) {
137137
auto t2_it = std::find(t2.begin(), t2.end(), *t1_it);
138-
if (t2.end() == t2_it) {return std::vector<size_t>();} else {
138+
if (t2.end() == t2_it) {
139+
return std::vector<size_t>();
140+
} else {
139141
const size_t t1_dist = std::distance(t1.begin(), t1_it);
140142
const size_t t2_dist = std::distance(t2.begin(), t2_it);
141143
mapping_vector[t1_dist] = t2_dist;

0 commit comments

Comments
 (0)