clang-tidy readability-simplify-boolean-expr (#235)

This commit is contained in:
Daniel Agar
2017-02-02 00:17:43 -05:00
committed by GitHub
parent 47b8ef258b
commit 7883085e4a
3 changed files with 4 additions and 23 deletions
+1 -6
View File
@@ -237,12 +237,7 @@ bool Ekf::update()
}
// We don't have valid data to output until tilt and yaw alignment is complete
if (_control_status.flags.tilt_align && _control_status.flags.yaw_align) {
return true;
} else {
return false;
}
return _control_status.flags.tilt_align && _control_status.flags.yaw_align;
}
bool Ekf::initialiseFilter()