From 8b9a245a92f4caae20ccda1c04cbc00a19987d82 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?=
 <ak4@sanger.ac.uk>
Date: Thu, 4 Feb 2010 11:53:50 +0000
Subject: [PATCH] Buglet fix: In sub_SeqFeature(): explicitly return empty
 list.

---
 modules/Bio/EnsEMBL/SeqFeature.pm | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/modules/Bio/EnsEMBL/SeqFeature.pm b/modules/Bio/EnsEMBL/SeqFeature.pm
index 99e91a44b9..691b4e5bea 100755
--- a/modules/Bio/EnsEMBL/SeqFeature.pm
+++ b/modules/Bio/EnsEMBL/SeqFeature.pm
@@ -676,14 +676,14 @@ sub entire_seq{
 
 =cut
 
-sub sub_SeqFeature{
-   my ($self) = @_;
+sub sub_SeqFeature {
+  my ($self) = @_;
 
-   if($self->{'_gsf_sub_array'}){
-     return @{$self->{'_gsf_sub_array'}};
-   }else{
-     return;
-   }
+  if ( $self->{'_gsf_sub_array'} ) {
+    return @{ $self->{'_gsf_sub_array'} };
+  } else {
+    return ();
+  }
 }
 
 =head2 add_sub_SeqFeature
-- 
GitLab