Skip to content

Commit 03bfc61

Browse files
committed
isnothing is new in Julia 1.1
1 parent 857eef4 commit 03bfc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Xsum.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ result. Both real and complex sums are supported.
5757
"""
5858
function xsum(itr)
5959
i = iterate(itr)
60-
if isnothing(i)
60+
if i === nothing
6161
zero = Base.mapreduce_empty_iter(identity, +, itr, Base.IteratorEltype(itr))
6262
return zero isa Real ? Float64(zero) : zero isa Complex ? ComplexF64(zero) : zero
6363
end

0 commit comments

Comments
 (0)