Skip to content

Commit d95e7f5

Browse files
committed
[ci skip] Missing return
1 parent c285066 commit d95e7f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modifications.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function ModifyConstraintNotAllowed(
1919
ci::ConstraintIndex{F, S},
2020
change::AbstractFunctionModification,
2121
message="") where {F<:AbstractFunction, S<:AbstractSet}
22-
ModifyConstraintNotAllowed{F, S, typeof(change)}(ci, change, message)
22+
return ModifyConstraintNotAllowed{F, S, typeof(change)}(ci, change, message)
2323
end
2424
throw_modify_not_allowed(ci::ConstraintIndex, args...) = throw(ModifyConstraintNotAllowed(ci, args...))
2525

@@ -39,7 +39,7 @@ struct ModifyObjectiveNotAllowed{C<:AbstractFunctionModification} <: NotAllowedE
3939
message::String
4040
end
4141
function ModifyObjectiveNotAllowed(change::AbstractFunctionModification)
42-
ModifyObjectiveNotAllowed(change, "")
42+
return ModifyObjectiveNotAllowed(change, "")
4343
end
4444
throw_modify_not_allowed(::ObjectiveFunction, args...) = throw(ModifyObjectiveNotAllowed(args...))
4545

0 commit comments

Comments
 (0)