From 0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Wed, 9 Mar 2005 08:26:38 +0000 Subject: Bug 284975: Any code after Throw*Error is a dead code. Patch By Tomas Kopal r=LpSolit, a=myk --- editversions.cgi | 8 -------- 1 file changed, 8 deletions(-) (limited to 'editversions.cgi') diff --git a/editversions.cgi b/editversions.cgi index 60f60057e..7faea7c8d 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -64,13 +64,11 @@ sub CheckProduct ($) # do we have a product? unless ($prod) { ThrowUserError('product_not_specified'); - exit; } unless (TestProduct $prod) { ThrowUserError('product_doesnt_exist', {'product' => $prod}); - exit; } } @@ -94,7 +92,6 @@ sub CheckVersion ($$) # do we have the version? unless ($ver) { ThrowUserError('version_not_specified'); - exit; } CheckProduct($prod); @@ -103,7 +100,6 @@ sub CheckVersion ($$) ThrowUserError('version_not_valid', {'product' => $prod, 'version' => $ver}); - exit; } } @@ -233,14 +229,12 @@ if ($action eq 'new') { unless ($version) { ThrowUserError('version_blank_name', {'name' => $version}); - exit; } if (TestVersion($product,$version)) { ThrowUserError('version_already_exists', {'name' => $version, 'product' => $product}); - exit; } # Add the new version @@ -407,13 +401,11 @@ if ($action eq 'update') { if ($version ne $versionold) { unless ($version) { ThrowUserError('version_blank_name'); - exit; } if (TestVersion($product,$version)) { ThrowUserError('version_already_exists', {'name' => $version, 'product' => $product}); - exit; } SendSQL("UPDATE bugs SET version=" . SqlQuote($version) . " -- cgit v1.2.3-24-g4f1b