Skip to content

Commit dc0e5c1

Browse files
prbzrgChrisRackauckas
authored andcommitted
fix unnecessary type check
1 parent 70f5d22 commit dc0e5c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/solve.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,8 +1273,7 @@ function __solve(prob::AbstractDEProblem, args...; default_set = false, second_t
12731273
elseif length(args) > 0 && !(typeof(args[1]) <: Union{Nothing, AbstractDEAlgorithm})
12741274
throw(NonSolverError())
12751275
else
1276-
__solve(prob::AbstractDEProblem, nothing, args...; default_set = false,
1277-
second_time = true, kwargs...)
1276+
__solve(prob, nothing, args...; default_set = false, second_time = true, kwargs...)
12781277
end
12791278
end
12801279

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

0 commit comments

Comments
 (0)