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 { ...@@ -628,8 +628,6 @@ sub fetch_by_region_unique {
$self->_build_exception_cache(); $self->_build_exception_cache();
} }
if (!exists( $self->{'asm_exc_cache'}->{ $self->get_seq_region_id($slice) } )) { return $slice; }
if ( exists( if ( exists(
$self->{'asm_exc_cache'}->{ $self->get_seq_region_id($slice) } $self->{'asm_exc_cache'}->{ $self->get_seq_region_id($slice) }
) ) ) )
...@@ -646,6 +644,8 @@ sub fetch_by_region_unique { ...@@ -646,6 +644,8 @@ sub fetch_by_region_unique {
push( @out, $segment->[2] ); push( @out, $segment->[2] );
} }
} }
} else {
@out = ($slice);
} }
return \@out; 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