Skip to content

Commit

Permalink
add braces to if function
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Dec 6, 2021
1 parent 57c881d commit 7c95c9a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/ruckig/block.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ class Block {
}

const Profile& get_profile(double t) const {
if (b && t >= b->right) return b->profile;
if (a && t >= a->right) return a->profile;
if (b && t >= b->right) {
return b->profile;
}
if (a && t >= a->right) {
return a->profile;
}
return p_min;
}

Expand Down

0 comments on commit 7c95c9a

Please sign in to comment.