diff --git a/src/SequenceVariation.jl b/src/SequenceVariation.jl index fa6aa2c..067b4ce 100644 --- a/src/SequenceVariation.jl +++ b/src/SequenceVariation.jl @@ -263,7 +263,6 @@ function Variant(aln::PairwiseAlignment{T, T}) where {T <: LongSequence{<:Union{ ref = aln.b E = eltype(typeof(ref)) edits = Edit{T, E}[] - result = Variant(ref, edits) refpos = first(aln.a.aln.anchors).refpos seqpos = first(aln.a.aln.anchors).seqpos markpos = 0 @@ -312,7 +311,7 @@ function Variant(aln::PairwiseAlignment{T, T}) where {T <: LongSequence{<:Union{ end end - return result + return Variant(ref, edits) end edits(v::Variant) = v.edits