clang-tidy: enable readability-simplify-boolean-expr and fix

This commit is contained in:
Daniel Agar
2019-10-27 19:19:07 -04:00
parent 279df3b1b8
commit 967446af4c
15 changed files with 53 additions and 93 deletions
+2 -2
View File
@@ -240,7 +240,7 @@ void FollowTarget::on_active()
case TRACK_POSITION: {
if (_radius_entered == true) {
if (_radius_entered) {
_follow_target_state = TRACK_VELOCITY;
} else if (target_velocity_valid()) {
@@ -259,7 +259,7 @@ void FollowTarget::on_active()
case TRACK_VELOCITY: {
if (_radius_exited == true) {
if (_radius_exited) {
_follow_target_state = TRACK_POSITION;
} else if (target_velocity_valid()) {