Closed Bug 1861622 Opened 1 year ago Closed 1 year ago

IrishCasing.cpp: do not use 'else' after 'return'

Categories

(Core :: Internationalization: Localization, task)

task

Tracking

()

RESOLVED FIXED
121 Branch
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.

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.

Flags: needinfo?(sledru)

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)

Flags: needinfo?(sledru)
Assignee: nobody → tawahpeggy98
Status: NEW → ASSIGNED
Attachment #9361221 - Attachment description: Bug 1861622 - Do not use 'else' after 'return'. r?Sylvestre → Bug 1861622 - Simplify the code by removing some 'else' r?Sylvestre
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2b830cf04501 Simplify the code by removing some 'else' r=jfkthame DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: