IrishCasing.cpp: do not use 'else' after 'return'
Categories
(Core :: Internationalization: Localization, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox121 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: tawahpeggy98, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++])
Attachments
(2 files)
Filling as a good first bug to learn workflows.
do not use 'else' after 'return':
https://searchfox.org/mozilla-central/source/intl/unicharutil/util/IrishCasing.cpp#228-249
Hopefully, this will simplify this code
As the change is simple, it is just 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/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
Comment 1•1 year ago
|
||
Isn't intl third party code (https://searchfox.org/mozilla-central/source/intl/update-icu.sh) and therefore any fix would need to be either made upstream or be performed by a local patch run by that script. The instructions in comment 0 don't seem to cover that.
Reporter | ||
Comment 2•1 year ago
|
||
Seems that it is our:
https://hg.mozilla.org/mozilla-central/rev/37d09834dd1eccaa2fefdf4674afbd21cf8f821f
especially with the license header on top (we usually don't put it when it isn't our code)
Assignee | ||
Comment 3•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Comment 6•1 year ago
|
||
bugherder |
Description
•