Skip to content

Commit 7445409

Browse files
committed
use === to compare with nothing
1 parent f5fe899 commit 7445409

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/univariatearchmodel.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,8 @@ end
628628
function modname(::Type{S}) where S<:Union{UnivariateVolatilitySpec, MeanSpec}
629629
s = "$(S)"
630630
lastcomma = findlast(isequal(','), s)
631-
lastcomma == nothing || (s = s[1:lastcomma-1] * '}')
631+
lastcomma === nothing || (s = s[1:lastcomma-1] * '}')
632632
firstdot = findfirst(isequal('.'), s)
633-
firstdot == nothing || (s = s[firstdot+1:end])
633+
firstdot === nothing || (s = s[firstdot+1:end])
634634
s
635635
end

0 commit comments

Comments
 (0)