Skip to content

Commit

Permalink
removing the short circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
padhupradheep committed Sep 11, 2024
1 parent 1d745ec commit 5614aab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bool PathLongerOnApproach::isPathUpdated(
nav_msgs::msg::Path & old_path)
{
return old_path.poses.size() != 0 &&
new_path.poses.size() != 0 && new_path.poses.size() > old_path.poses.size() &&
new_path.poses.size() != 0 &&
old_path.poses.back().pose.position == new_path.poses.back().pose.position;
}

Expand Down

0 comments on commit 5614aab

Please sign in to comment.