Closed Bug 1688511 Opened 3 years ago Closed 3 years ago

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

Categories

(Toolkit :: Startup and Profile System, task)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: Sylvestre, Assigned: sachinchauhan2889)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file, 2 obsolete files)

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

Filling as a good first bug to learn workflows.

do not use 'else' after 'return':
https://searchfox.org/mozilla-central/rev/7431701c98da9218fda314a54efa1a3093760f65/startupcache/StartupCacheUtils.cpp#155-156

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.

Component: General → Startup and Profile System
Product: Core → Toolkit

Hi Sylvestre,
Can I work on this bug?

Abhishek

Sure (please read the whole message ;)

First I have to solve Bug #1688504 than I came to solve this bug.

@Abhishek Sharma If you are not active on this bug can I take it?

I am on active this bug.

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

Remove the else if statement

Depends on D103866

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 #9200822 - Attachment is obsolete: true
Attachment #9199834 - Attachment is obsolete: true
Assignee: nobody → mick.sharma02
Attachment #9200822 - Attachment is obsolete: false
Status: NEW → ASSIGNED

You should start with easier contribution than Firefox and follow the guidance ;)

Assignee: mick.sharma02 → nobody
Status: ASSIGNED → NEW
Attachment #9200822 - Attachment is obsolete: true
Assignee: nobody → sachinchauhan2889
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/96c5cac78a5c
do not use 'else' after 'return'. r=sylvestre
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: