Skip to content

Commit

Permalink
Update src/univariate/locationscale.jl
Browse files Browse the repository at this point in the history
D is not used inside the function any more -> can simpify

Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
  • Loading branch information
bgctw and devmotion authored Sep 25, 2023
1 parent 3021725 commit b614da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/univariate/locationscale.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct AffineDistribution{T<:Real, S<:ValueSupport, D<:UnivariateDistribution{S}
end


function AffineDistribution::T, σ::T, ρ::D; check_args::Bool=true) where {T<:Real,D<:UnivariateDistribution}
function AffineDistribution::T, σ::T, ρ::UnivariateDistribution; check_args::Bool=true) where {T<:Real}
@check_args AffineDistribution (σ, !iszero(σ))
# μ and σ act on both random numbers and parameter-like quantities like mean
# hence do not promote: but take care in eltype and partype
Expand Down

0 comments on commit b614da3

Please sign in to comment.