Skip to content

Commit 93eea2e

Browse files
authored
check len instead of if nil (viamrobotics#4754)
1 parent dccdac0 commit 93eea2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

motionplan/plan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ func (p *PlanState) Configuration() referenceframe.FrameSystemInputs {
373373

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

0 commit comments

Comments
 (0)