Skip to content

Commit

Permalink
check len instead of if nil (viamrobotics#4754)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfranczak authored Jan 29, 2025
1 parent dccdac0 commit 93eea2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion motionplan/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (p *PlanState) Configuration() referenceframe.FrameSystemInputs {

// ComputePoses returns the poses of a PlanState if they are populated, or computes them using the given FrameSystem if not.
func (p *PlanState) ComputePoses(fs referenceframe.FrameSystem) (referenceframe.FrameSystemPoses, error) {
if p.poses != nil {
if len(p.poses) > 0 {
return p.poses, nil
}

Expand Down

0 comments on commit 93eea2e

Please sign in to comment.