Closed Bug 1613255 Opened 4 years ago Closed 4 years ago

nsNSSCertificate.cpp: redundant return statement at the end of a function with a void return type

Categories

(Developer Infrastructure :: Source Code Analysis, task)

task
Not set
normal

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: Sylvestre, Assigned: manas.khurana20, Mentored)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file, 1 obsolete file)

Filling as a good first bug to learn workflows.

return; at the end of a void function is useless
https://searchfox.org/mozilla-central/source/security/manager/ssl/nsNSSCertificate.cpp#577

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-redundant-control-flow.html

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html

Please assign it to me. I'd like to start contributing to Firefox with this bug.

Assignee: nobody → arc.nishad

Whom should I assign for review?

Flags: needinfo?(arc.nishad)

OK. I've committed my change with a reviewer mentioned in the commit message. I haven't used Phabricator. Do I need to do that?

Flags: needinfo?(arc.nishad) → needinfo?(sledru)

Not sure what you mean but yeah, you have to use phabricator

Flags: needinfo?(sledru)

Please assign this bug to someone else. I'm not having enough time. :(

Assignee: arc.nishad → nobody

This seems like a great opportunity to learn! Please assign this bug to me so I can contribute!

Flags: needinfo?(sledru)

Please provide a patch and it will be automatically assigned to you.
If someone takes it before you, I will create a new good first bug for you!

Flags: needinfo?(sledru)
Assignee: nobody → manas.khurana20
Status: NEW → ASSIGNED

I pushed a patch. Did I do it right?

Flags: needinfo?(sledru)

Yeah, bravo.
I just have a minor request!
Thanks

Flags: needinfo?(sledru)

Depends on D64354

Attachment #9129287 - Attachment is obsolete: true
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d3aecdee319b
Remove redundant return statement. r=sylvestre
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: