Closed Bug 1860247 Opened 1 year ago Closed 1 year ago

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

Categories

(Core :: MFBT, task)

task

Tracking

()

RESOLVED FIXED
124 Branch
Tracking Status
firefox124 --- fixed

People

(Reporter: Sylvestre, Assigned: maazism, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++])

Attachments

(3 files, 1 obsolete file)

+++ This bug was initially created as a clone of Bug #1857751 +++

Filling as a good first bug to learn workflows.

do not use 'else' after 'return':
https://searchfox.org/mozilla-central/rev/9f6a9e601b2ab9ad1a3877691ea17c66c1fd8867/mfbt/Poison.cpp#122-133

As the change is trivial, 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.

Assignee: nobody → massatamfu
Status: NEW → ASSIGNED
Attached file Poison.cpp (obsolete) —

Fixed Bug 1860247 Poison.cpp: Avoid using 'else' after 'return'

Flags: needinfo?(sledru)
Attached image poison cpp.png

Fixed Bug 1860247 Poison.cpp: Avoid using 'else' after 'return'

Attachment #9360888 - Attachment is obsolete: true
Flags: needinfo?(sledru)

Hi Sylvestre Ledru,

Thanks for the opportunity, I was opportune to find some time to participate in this contribution. I handled the bug on Bug 1860247. I unfortunately got out of surgery recently and was not able to be as forthcoming with my presence as required but regardless, I am happy to get your feedback.

I am aware your hands and schedule must be occupied at the moment so any response I can get whenever you can spare some time would be appreciated.

Flags: needinfo?(sledru)

Massa is already working on it
Sorry

Flags: needinfo?(sledru)

Ok I will attend to another one thanks.

Flags: needinfo?(sledru)

Needinfo should be used only when you need an answer. Please use it wisely

Flags: needinfo?(sledru)

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: massatamfu → nobody
Status: ASSIGNED → NEW
Assignee: nobody → maazism
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f50647366746 Poison.cpp: do not use 'else' after 'return'. r=sylvestre
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: