From bcb5792f0cab516e37416a18d415ae217bd19f46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?=
 <ak4@sanger.ac.uk>
Date: Tue, 20 Jul 2010 11:47:32 +0000
Subject: [PATCH] Remove a couple of double uses of "my".

---
 modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm b/modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm
index 4101c280d9..23de8009ad 100644
--- a/modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm
+++ b/modules/Bio/EnsEMBL/IdMapping/ExonScoreBuilder.pm
@@ -673,18 +673,14 @@ sub non_mapped_transcript_rescore {
 
   foreach my $entry (@{ $matrix->get_all_Entries }) {
 
-    my @source_transcripts = @{ $self->cache->get_by_key(
-      'transcripts_by_exon_id', 'source', $entry->source) };
-    my @target_transcripts = @{ $self->cache->get_by_key(
-      'transcripts_by_exon_id', 'target', $entry->target) };
-
     # EG reworking of logic to allow no source/target e.g. for new
     # species in multispecies databases
     my $st =
       $self->cache()
       ->get_by_key( 'transcripts_by_exon_id', 'source',
                     $entry->source() );
-    my @source_transcripts;
+
+    my @source_transcripts = ();
     if ( !defined($st) ) {
       $self->logger->warning(
                           "Can't find source transcipts by exon_id for "
@@ -697,6 +693,7 @@ sub non_mapped_transcript_rescore {
       $self->cache()
       ->get_by_key( 'transcripts_by_exon_id', 'target',
                     $entry->target() );
+
     my @target_transcripts = ();
     if ( !defined($tt) ) {
       $self->logger->warning(
-- 
GitLab