aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-09 08:26:38 +0000
committermkanat%kerio.com <>2005-03-09 08:26:38 +0000
commit0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a (patch)
tree93f5ab09d20a212b8ba499e2cf59756aaad3b902 /editversions.cgi
parentBug 282145: Bug.pm is too slow for general use (diff)
downloadbugzilla-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.gz
bugzilla-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.bz2
bugzilla-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-xeditversions.cgi8
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) . "