Skip to content

Commit

Permalink
if block ends with a return statement, so drop this else and outdent …
Browse files Browse the repository at this point in the history
…its block
  • Loading branch information
nfranczak committed Sep 12, 2024
1 parent 0c66679 commit 4fc057b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/motion/builtin/move_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,9 @@ func (ms *builtIn) createBaseMoveRequest(
atGoalCheck := func(basePose spatialmath.Pose) bool {
if valExtra.motionProfile == motionplan.PositionOnlyMotionProfile {
return spatialmath.PoseAlmostCoincidentEps(goal.Pose(), basePose, motionCfg.planDeviationMM)
} else {
return spatialmath.OrientationAlmostEqualEps(goal.Pose().Orientation(), basePose.Orientation(), 5) &&
spatialmath.PoseAlmostCoincidentEps(goal.Pose(), basePose, motionCfg.planDeviationMM)
}
return spatialmath.OrientationAlmostEqualEps(goal.Pose().Orientation(), basePose.Orientation(), 5) &&
spatialmath.PoseAlmostCoincidentEps(goal.Pose(), basePose, motionCfg.planDeviationMM)
}

var backgroundWorkers sync.WaitGroup
Expand Down

0 comments on commit 4fc057b

Please sign in to comment.