Commit 1735f4bb authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Change logic i translation() slightly.

parent 0c88d4e3
......@@ -632,7 +632,8 @@ sub translation {
$self->{'transcript_mapper'} = undef;
} elsif ( @_ > 1 && defined( $self->{'translation'} ) ) {
} elsif ( @_ > 1 ) {
if ( defined( $self->{'translation'} ) ) {
# Removing existing translation
$self->{'translation'}->transcript(undef);
......@@ -645,7 +646,7 @@ sub translation {
$self->{'coding_region_end'} = undef;
$self->{'transcript_mapper'} = undef;
}
} elsif ( !exists( $self->{'translation'} )
&& defined( $self->adaptor() ) )
{
......
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