Commit 8f39079d authored by Magali Ruffier's avatar Magali Ruffier
Browse files

should return an array ref, not a slice

parent 6908c322
......@@ -628,8 +628,6 @@ sub fetch_by_region_unique {
$self->_build_exception_cache();
}
if (!exists( $self->{'asm_exc_cache'}->{ $self->get_seq_region_id($slice) } )) { return $slice; }
if ( exists(
$self->{'asm_exc_cache'}->{ $self->get_seq_region_id($slice) }
) )
......@@ -646,6 +644,8 @@ sub fetch_by_region_unique {
push( @out, $segment->[2] );
}
}
} else {
@out = ($slice);
}
return \@out;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment