From 8b7a2ecc2b80ca7717b65d1489c99f50a0bf0d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20O=27Mara?= Date: Fri, 22 May 2020 12:11:46 +1000 Subject: [PATCH] Correct not found check --- src/bam/overlap.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bam/overlap.jl b/src/bam/overlap.jl index bb7b3c1..c6cf8ac 100644 --- a/src/bam/overlap.jl +++ b/src/bam/overlap.jl @@ -47,7 +47,7 @@ end function Base.iterate(iter::OverlapIterator) refindex = findfirst(isequal(iter.refname), iter.reader.refseqnames) - if refindex == 0 + if refindex === nothing throw(ArgumentError("sequence name $(iter.refname) is not found in the header")) end @assert iter.reader.index !== nothing