Skip to content

Commit 6e231f8

Browse files
authored
=== in comparing with nothing (#364)
1 parent 85f2c1a commit 6e231f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/LinearAlgebra/helper.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ function resize!(it::CachedIterator,n::Integer)
555555

556556
@inbounds for k = m+1:n
557557
xst = iterate(it.iterator,it.state...)
558-
if xst == nothing
558+
if xst === nothing
559559
it.length = k-1
560560
return it
561561
end
@@ -573,7 +573,7 @@ eltype(it::Type{<:CachedIterator{T}}) where {T} = T
573573

574574
iterate(it::CachedIterator) = iterate(it,1)
575575
function iterate(it::CachedIterator,st::Int)
576-
if st == it.length + 1 && iterate(it.iterator,it.state...) == nothing
576+
if st == it.length + 1 && iterate(it.iterator,it.state...) === nothing
577577
nothing
578578
else
579579
(it[st],st+1)
@@ -732,14 +732,14 @@ function iterate(it::BlockInterlacer, (N,k,blkst,lngs))
732732
# increment to next block
733733
blkst = map(it.blocks,blkst) do blit,blst
734734
xblst = iterate(blit, blst...)
735-
xblst == nothing ? blst : (xblst[2],)
735+
xblst === nothing ? blst : (xblst[2],)
736736
end
737737
return iterate(it,(1,1,blkst,lngs))
738738
end
739739

740740
Bnxtb = iterate(it.blocks[N],blkst[N]...) # B is block size
741741

742-
if Bnxtb == nothing
742+
if Bnxtb === nothing
743743
# increment to next N
744744
return iterate(it,(N+1,1,blkst,lngs))
745745
end

0 commit comments

Comments
 (0)