Skip to content

Commit 5614aab

Browse files
committed
removing the short circuit
1 parent 1d745ec commit 5614aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎nav2_behavior_tree/plugins/decorator/path_longer_on_approach.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bool PathLongerOnApproach::isPathUpdated(
3535
nav_msgs::msg::Path & old_path)
3636
{
3737
return old_path.poses.size() != 0 &&
38-
new_path.poses.size() != 0 && new_path.poses.size() > old_path.poses.size() &&
38+
new_path.poses.size() != 0 &&
3939
old_path.poses.back().pose.position == new_path.poses.back().pose.position;
4040
}
4141

0 commit comments

Comments
 (0)