From 45ff6411cfef368374da06e6375096eaff7a2d06 Mon Sep 17 00:00:00 2001
From: Monika Komorowska <mk8@sanger.ac.uk>
Date: Tue, 10 Jan 2012 13:54:43 +0000
Subject: [PATCH] deleted misplaced croak statement

---
 misc-scripts/xref_mapping/XrefParser/Database.pm | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/misc-scripts/xref_mapping/XrefParser/Database.pm b/misc-scripts/xref_mapping/XrefParser/Database.pm
index 315a0c9ab8..ae21a868ef 100644
--- a/misc-scripts/xref_mapping/XrefParser/Database.pm
+++ b/misc-scripts/xref_mapping/XrefParser/Database.pm
@@ -164,9 +164,8 @@ sub create {
     if ( $drop_db ) {
 	$dbh->do( "DROP DATABASE $dbname" );
 	print "Database $dbname dropped\n" if($self->verbose) ;
-    }
+    } else {
 
-    if (!$drop_db ) {
       my $p;
       if($force){
 	$p = 'yes';
@@ -183,9 +182,7 @@ sub create {
 	print "$dbname NOT removed\n";
 	exit(1);
       }
-    } else {
-      croak(  "Database $dbname already exists. "
-            . 'Use -create option to overwrite it.' );
+
     }
   }
 
-- 
GitLab