Closed Bug 1688509 Opened 3 years ago Closed 3 years ago

ResponsiveImageSelector.cpp: do not use 'else' after 'break'

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: Sylvestre, Assigned: janey, Mentored)

References

(Blocks 1 open bug)

Details

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

Attachments

(2 files, 2 obsolete files)

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

Filling as a good first bug to learn workflows.

do not use 'else' after 'break':
https://searchfox.org/mozilla-central/source/dom/base/ResponsiveImageSelector.cpp#615-616

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.

Mentor: echen
Severity: -- → N/A
Priority: -- → P3

Can I work on this bug?

Assignee: nobody → mick.sharma02
Status: NEW → ASSIGNED

Remove the else if statement

Depends on D103345

Abhishek, as I was saying in the review, I am unassigning these bugs from you.
You need to compile and test your changes and you haven't despite asking several times.

Assignee: mick.sharma02 → nobody
Status: ASSIGNED → NEW
Attachment #9199835 - Attachment is obsolete: true
Attachment #9200820 - Attachment is obsolete: true

Hey Sylvestre,
I am new to bug fixing may I know what is the status on this bug, if possible I would like to take this up

Assignee: nobody → mick.sharma02
Attachment #9200820 - Attachment is obsolete: false
Status: NEW → ASSIGNED
Attachment #9200820 - Attachment is obsolete: true
Attachment #9199835 - Attachment is obsolete: false
Attachment #9199835 - Attachment is obsolete: true

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

Assignee: mick.sharma02 → nobody
Status: ASSIGNED → NEW

Hi Sylvestre Ledru [:Sylvestre],

My name is Jane, I'm from Outreachy. I would love to work on this bug which is obviously easy to fix because everything is clarified already :)
My q is regarding tests - when I am running them locally, do I do: "mach test devtools/dom/base/ResponsiveImageSelector.cpp --headless" ?
a little bit lost with the test options. Would extremely appreciate nay clarification! Kind regards!

Depends on D111770

Assignee: nobody → jenyabrentnall
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b952cb5a8f92
[dom] Remove Else after Break. r=sylvestre
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: