Skip to content

Commit

Permalink
another small convenience fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed May 20, 2024
1 parent e2de6ff commit 6095c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plans/constrained_plan.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function _number_of_constraints(
function_type::Union{AbstractVectorialType,Nothing}=nothing,
jacobian_type::Union{AbstractVectorialType,Nothing}=nothing,
M::Union{AbstractManifold,Nothing}=nothing,
p=nothing,
p=isnothing(M) ? nothing : rand(M),
)
if !isnothing(g)
if isa(function_type, ComponentVectorialType) || isa(g, AbstractVector)
Expand Down

0 comments on commit 6095c3e

Please sign in to comment.