Skip to content

Commit

Permalink
remove unreachable code (PointCloudLibrary#1967)
Browse files Browse the repository at this point in the history
Remove unreachable code in registration::DefaultConvergenceCriteria
  • Loading branch information
jasjuang authored and UnaNancyOwen committed Nov 24, 2017
1 parent 5a1d189 commit 0f8de92
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ pcl::registration::DefaultConvergenceCriteria<Scalar>::hasConverged ()
{
if (failure_after_max_iter_)
return (false);
else
{
convergence_state_ = CONVERGENCE_CRITERIA_ITERATIONS;
return (true);
}
return (failure_after_max_iter_ ? false : true);

convergence_state_ = CONVERGENCE_CRITERIA_ITERATIONS;
return (true);
}

// 2. The epsilon (difference) between the previous transformation and the current estimated transformation
Expand Down

0 comments on commit 0f8de92

Please sign in to comment.