Skip to content

Commit

Permalink
fix unnecessary type check
Browse files Browse the repository at this point in the history
  • Loading branch information
prbzrg authored and ChrisRackauckas committed Oct 8, 2023
1 parent 70f5d22 commit dc0e5c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1273,8 +1273,7 @@ function __solve(prob::AbstractDEProblem, args...; default_set = false, second_t
elseif length(args) > 0 && !(typeof(args[1]) <: Union{Nothing, AbstractDEAlgorithm})
throw(NonSolverError())
else
__solve(prob::AbstractDEProblem, nothing, args...; default_set = false,
second_time = true, kwargs...)
__solve(prob, nothing, args...; default_set = false, second_time = true, kwargs...)
end
end

Expand All @@ -1285,8 +1284,7 @@ function __init(prob::AbstractDEProblem, args...; default_set = false, second_ti
elseif length(args) > 0 && !(typeof(args[1]) <: Union{Nothing, AbstractDEAlgorithm})
throw(NonSolverError())
else
__init(prob::AbstractDEProblem, nothing, args...; default_set = false,
second_time = true, kwargs...)
__init(prob, nothing, args...; default_set = false, second_time = true, kwargs...)
end
end

Expand Down

0 comments on commit dc0e5c1

Please sign in to comment.