Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Aug 20, 2024
1 parent 1ea8bd7 commit bde6026
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ class MotorTask {
if (!engage.has_value()) {
return true;
}
if (engage.value()) {
return policy.enable_motor(id);
}
return policy.disable_motor(id);
return engage.value() ? policy.enable_motor(id)
: policy.disable_motor(id);
}

template <MotorControlPolicy Policy>
Expand Down

0 comments on commit bde6026

Please sign in to comment.