Skip to content

Commit 32392ce

Browse files
authored
Merge pull request #318 from control-toolbox/auto-juliaformatter-pr
[AUTO] JuliaFormatter.jl run
2 parents f9ffa03 + 6677410 commit 32392ce

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/optimal_control_model-setters.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,8 @@ function constraint!(
638638
BoundaryConstraint!((r, x0, xf) -> (@views r[:] .= x0[rg]; nothing), V)
639639
else
640640
BoundaryConstraint!(
641-
(r, x0, xf, v) -> (@views r[:] .= x0[rg]; nothing), V
642-
)
641+
(r, x0, xf, v) -> (@views r[:] .= x0[rg]; nothing), V
642+
)
643643
end
644644
else
645645
if V == Fixed
@@ -653,8 +653,8 @@ function constraint!(
653653
BoundaryConstraint!((r, x0, xf) -> (@views r[:] .= xf[rg]; nothing), V)
654654
else
655655
BoundaryConstraint!(
656-
(r, x0, xf, v) -> (@views r[:] .= xf[rg]; nothing), V
657-
)
656+
(r, x0, xf, v) -> (@views r[:] .= xf[rg]; nothing), V
657+
)
658658
end
659659
else
660660
if V == Fixed

src/optimal_control_model-type.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Throw ```UnauthorizedCall``` exception if the state of an ocp is not set.
264264
"""
265265
function __check_state_set(ocp::OptimalControlModel)
266266
return __is_state_not_set(ocp) &&
267-
throw(UnauthorizedCall("the state dimension has to be set before."))
267+
throw(UnauthorizedCall("the state dimension has to be set before."))
268268
end
269269

270270
"""
@@ -275,7 +275,7 @@ Throw ```UnauthorizedCall``` exception if the control of an ocp is not set.
275275
"""
276276
function __check_control_set(ocp::OptimalControlModel)
277277
return __is_control_not_set(ocp) &&
278-
throw(UnauthorizedCall("the control dimension has to be set before."))
278+
throw(UnauthorizedCall("the control dimension has to be set before."))
279279
end
280280

281281
"""
@@ -286,7 +286,7 @@ Throw ```UnauthorizedCall``` exception if the time of an ocp is not set.
286286
"""
287287
function __check_is_time_set(ocp::OptimalControlModel)
288288
return __is_time_not_set(ocp) &&
289-
throw(UnauthorizedCall("the time dimension has to be set before."))
289+
throw(UnauthorizedCall("the time dimension has to be set before."))
290290
end
291291

292292
"""
@@ -297,7 +297,7 @@ Throw ```UnauthorizedCall``` exception if the variable of an ocp is not set.
297297
"""
298298
function __check_variable_set(ocp::OptimalControlModel{<:TimeDependence,NonFixed})
299299
return __is_variable_not_set(ocp) &&
300-
throw(UnauthorizedCall("the variable dimension has to be set before."))
300+
throw(UnauthorizedCall("the variable dimension has to be set before."))
301301
end
302302

303303
"""

src/repl.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ function ct_repl(; debug=false, verbose=false)
150150
nothing
151151
else
152152
begin
153-
println("\n", string($ct_repl_data.ocp_name))
154-
$(ct_repl_data.ocp_name)
155-
end
153+
println("\n", string($ct_repl_data.ocp_name))
154+
$(ct_repl_data.ocp_name)
155+
end
156156
end
157157
end
158158
return q

0 commit comments

Comments
 (0)