Closed
Bug 284975
Opened 20 years ago
Closed 20 years ago
Any code after Throw*Error is a dead code.
Categories
(Bugzilla :: Bugzilla-General, defect)
Bugzilla
Bugzilla-General
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: Tomas.Kopal, Assigned: Tomas.Kopal)
Details
Attachments
(1 file)
|
11.58 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
There is couple of places where we call exit after Throw*Error call. As Throw*Error calls do never return, the exit is just confusing and should be removed. See bug 277782 for more details. Patch follows.
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #176440 -
Flags: review?(LpSolit)
Comment 2•20 years ago
|
||
Comment on attachment 176440 [details] [diff] [review] V1 r=LpSolit
Attachment #176440 -
Flags: review?(LpSolit) → review+
Updated•20 years ago
|
Status: NEW → ASSIGNED
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
Comment 3•20 years ago
|
||
Comment on attachment 176440 [details] [diff] [review] V1 >--- editcomponents.cgi 5 Mar 2005 00:18:48 -0000 1.49 >+++ editcomponents.cgi 6 Mar 2005 06:58:22 -0000 >@@ -66,14 +66,12 @@ > > # do we have a product? > unless ($prod) { >- ThrowUserError('product_not_specified'); >- exit; >+ ThrowUserError('product_not_specified'); > } Nit: there are trailing whitespaces at the end of ThrowUserError('product_not_specified');. This should be removed before checking this patch in.
Updated•20 years ago
|
Flags: approval? → approval+
Comment 4•20 years ago
|
||
Checking in createaccount.cgi; /cvsroot/mozilla/webtools/bugzilla/createaccount.cgi,v <-- createaccount.cgi new revision: 1.37; previous revision: 1.36 done Checking in editclassifications.cgi; /cvsroot/mozilla/webtools/bugzilla/editclassifications.cgi,v <-- editclassifications.cgi new revision: 1.7; previous revision: 1.6 done Checking in editcomponents.cgi; /cvsroot/mozilla/webtools/bugzilla/editcomponents.cgi,v <-- editcomponents.cgi new revision: 1.50; previous revision: 1.49 done Checking in editkeywords.cgi; /cvsroot/mozilla/webtools/bugzilla/editkeywords.cgi,v <-- editkeywords.cgi new revision: 1.24; previous revision: 1.23 done Checking in editmilestones.cgi; /cvsroot/mozilla/webtools/bugzilla/editmilestones.cgi,v <-- editmilestones.cgi new revision: 1.33; previous revision: 1.32 done Checking in editproducts.cgi; /cvsroot/mozilla/webtools/bugzilla/editproducts.cgi,v <-- editproducts.cgi new revision: 1.71; previous revision: 1.70 done Checking in editversions.cgi; /cvsroot/mozilla/webtools/bugzilla/editversions.cgi,v <-- editversions.cgi new revision: 1.32; previous revision: 1.31 done
Severity: normal → trivial
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•