Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
felipenoris committed Apr 12, 2023
1 parent 94886f2 commit 7e8b94f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,14 @@ mutable struct IRCurve{M} <: AbstractIRCurve{M}
# Constructor for Interpolation methods
function IRCurve(
name::AbstractString,
_daycount::DayCountConvention,
compounding::CompoundingType, method::M,
_daycount::DayCountConvention,
compounding::CompoundingType,
method::M,
date::Date, dtm::Vector{Int},
zero_rates::Vector{Float64},
parameters = Vector{Float64}(),
dict = Dict{Symbol, Any}(),
) where {M<:Interpolation}
parameters = Vector{Float64}(),
dict = Dict{Symbol, Any}(),
) where {M<:Interpolation}

@assert !isempty(dtm) "Empty days-to-maturity vector"
@assert !isempty(zero_rates) "Empty zero_rates vector"
Expand Down

0 comments on commit 7e8b94f

Please sign in to comment.