Closed Bug 1861618 Opened 6 months ago Closed 6 months ago

shared-libraries-linux.cc: do not use 'else' after 'return'

Categories

(Core :: mozglue, task)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: Sylvestre, Assigned: tawahpeggy98, Mentored)

References

(Blocks 1 open bug)

Details

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

Attachments

(2 files)

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

+++ 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/source/mozglue/baseprofiler/core/shared-libraries-linux.cc#520-522

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 → tawahpeggy98
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fb450a287979
Do not use 'else' after 'return'. r=sylvestre,profiler-reviewers,canaltinova

Backed out for causing build bustages in ClearKeyUtils.cpp

+Bc failures: https://treeherder.mozilla.org/logviewer?job_id=434630102&repo=autoland

Flags: needinfo?(tawahpeggy98)

I have submitted a new patch without the error, please check it out.

Flags: needinfo?(tawahpeggy98)
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d8d3ee0a4942
Reduce usage of return statements after else. r=sylvestre DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: