diff options
author | mkanat%kerio.com <> | 2005-03-09 08:26:38 +0000 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-03-09 08:26:38 +0000 |
commit | 0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a (patch) | |
tree | 93f5ab09d20a212b8ba499e2cf59756aaad3b902 /editversions.cgi | |
parent | 5b1b54e9b96da06b6802f79108a20080f7f93f18 (diff) | |
download | bugs-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar bugs-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.gz bugs-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.bz2 bugs-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.xz bugs-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.zip |
Bug 284975: Any code after Throw*Error is a dead code.
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=LpSolit, a=myk
Diffstat (limited to 'editversions.cgi')
-rwxr-xr-x | editversions.cgi | 8 |
1 files changed, 0 insertions, 8 deletions
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) . " |