From 874c0aa3fd0ce42027bf43ee2b5b3ac8cee9d6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Tue, 18 Oct 2011 14:24:40 +0000 Subject: [PATCH] *** empty log message *** --- .../Bio/EnsEMBL/IdMapping/InternalIdMapper/BaseMapper.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/Bio/EnsEMBL/IdMapping/InternalIdMapper/BaseMapper.pm b/modules/Bio/EnsEMBL/IdMapping/InternalIdMapper/BaseMapper.pm index ab1898e21a..7a76e28a48 100644 --- a/modules/Bio/EnsEMBL/IdMapping/InternalIdMapper/BaseMapper.pm +++ b/modules/Bio/EnsEMBL/IdMapping/InternalIdMapper/BaseMapper.pm @@ -238,7 +238,9 @@ sub scores_similar { sub filter_sources { my ( $self, $other_sources, $sources_done ) = @_; - unless ( scalar(@$other_sources) and scalar( keys %$sources_done ) ) { + unless ( scalar( @{$other_sources} ) + and scalar( keys %{$sources_done} ) ) + { return $other_sources; } @@ -255,7 +257,7 @@ sub filter_targets { my ( $self, $other_targets, $targets_done ) = @_; unless ( scalar( @{$other_targets} ) - and scalar( keys %$targets_done ) ) + and scalar( keys %{$targets_done} ) ) { return $other_targets; } -- GitLab