Skip to content

Commit 2e7f123

Browse files
authored
Update check for nothing in ChebyshevT (#422)
Use === instead of == in the check for `nothing`
1 parent 8116678 commit 2e7f123

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/polynomials/ChebyshevT.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct ChebyshevT{T, X} <: AbstractPolynomial{T, X}
4848
end
4949

5050
N = findlast(!iszero, coeffs)
51-
N == nothing && return new{T,X}(zeros(T,1))
51+
N === nothing && return new{T,X}(zeros(T,1))
5252
cs = T[coeffs[i] for i firstindex(coeffs):N]
5353
new{T,X}(cs)
5454
end

0 commit comments

Comments
 (0)