clang-tidy readability-simplify-boolean-expr

This commit is contained in:
Daniel Agar
2017-04-23 18:00:57 -04:00
parent 3c06641897
commit 64ed96d81a
12 changed files with 36 additions and 95 deletions
@@ -563,11 +563,7 @@ bool BlockLocalPositionEstimator::landed()
bool disarmed_not_falling = (!_sub_armed.get().armed) && (!_sub_land.get().freefall);
if (!(_sub_land.get().landed || disarmed_not_falling)) {
return false;
}
return true;
return _sub_land.get().landed || disarmed_not_falling;
}
void BlockLocalPositionEstimator::publishLocalPos()