Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/OptimalControlProblems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ for problem in LIST_OF_PROBLEMS
@doc $doc function $problem(
model_backend::T, args...; kwargs...
) where {T<:AbstractModelBackend}
throw(CTBase.ExtensionError(weakdeps[T]))
return throw(CTBase.ExtensionError(weakdeps[T]))
end
export $problem
end
Expand All @@ -103,7 +103,7 @@ for problem in LIST_OF_PROBLEMS
@doc $doc_s function $problem_s(
model_backend::T, args...; kwargs...
) where {T<:AbstractModelBackend}
throw(CTBase.ExtensionError(weakdeps[T]))
return throw(CTBase.ExtensionError(weakdeps[T]))
end
export $problem_s
end
Expand Down Expand Up @@ -304,7 +304,7 @@ ERROR: CTBase.UnauthorizedCall("There is nothing to merge.")
```
"""
function merge(::Nothing, ::NamedTuple)
throw(CTBase.UnauthorizedCall("There is nothing to merge."))
return throw(CTBase.UnauthorizedCall("There is nothing to merge."))
end

"""
Expand Down