diff --git a/planning/planning_validator/src/planning_validator.cpp b/planning/planning_validator/src/planning_validator.cpp index 05791a75e5038..da0fb72e0d775 100644 --- a/planning/planning_validator/src/planning_validator.cpp +++ b/planning/planning_validator/src/planning_validator.cpp @@ -296,7 +296,7 @@ void PlanningValidator::validate(const Trajectory & trajectory) bool PlanningValidator::checkValidSize(const Trajectory & trajectory) { - return trajectory.points.size() < 2 ? false : true; + return trajectory.points.size() >=2; } bool PlanningValidator::checkValidFiniteValue(const Trajectory & trajectory)