Closed Bug 1713523 Opened 3 years ago Closed 3 years ago

dom/crypto/CryptoBuffer.cpp: do not use 'else' after 'return'

Categories

(Core :: DOM: Web Crypto, task)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: Sylvestre, Assigned: nayeemhasan.nh01, NeedInfo)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 file)

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

Filling as a good first bug to learn workflows.

do not use 'else' after 'return':
https://searchfox.org/mozilla-central/rev/5977b6fdebe32451ada35fa2cbd7c0752cfea982/dom/crypto/CryptoBuffer.cpp#50-56
https://searchfox.org/mozilla-central/rev/5977b6fdebe32451ada35fa2cbd7c0752cfea982/dom/crypto/CryptoBuffer.cpp#64-68

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 → DOM: Web Crypto

Hi, can I work on this?

yes

Assignee: nobody → nayeemhasan.nh01
Status: NEW → ASSIGNED

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:nayeemhasan.nh01, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(nayeemhasan.nh01)
Flags: needinfo?(bpostelnicu)
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7fc38a2485d4
Remove 'else' after 'return' in CryptoBuffer. r=andi
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Flags: needinfo?(bpostelnicu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: