Closed
Bug 1626761
Opened 4 years ago
Closed 4 years ago
nsBidiUtils.cpp: do not use 'else' after 'return'
Categories
(Developer Infrastructure :: Source Code Analysis, task)
Developer Infrastructure
Source Code Analysis
Tracking
(firefox79 fixed)
RESOLVED
FIXED
mozilla79
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: bharath.bmsce, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++])
Attachments
(1 file)
Filling as a good first bug to learn workflows.
// XXX do we really want to convert numerals when copying text?
if (aPrevCharArabic) {
if (aNumFlag == IBMBIDI_NUMERAL_PERSIANCONTEXT)
return NUM_TO_PERSIAN(aChar);
else
return NUM_TO_HINDI(aChar);
} else
return NUM_TO_ARABIC(aChar);
do not use 'else' after 'return'
https://searchfox.org/mozilla-central/source/intl/unicharutil/util/nsBidiUtils.cpp#57-63
As the change is pretty easy, it is mostly to learn how to contribute to Firefox.
Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → bharath.bmsce
Status: NEW → ASSIGNED
Pushed by dluca@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/02618db5d8ca Fixing readability-else-after-return bug, found by clang-tidy. r=jfkthame
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox79:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•