Closed Bug 1684640 Opened 4 years ago Closed 4 years ago

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

Categories

(Core :: XPCOM, task)

task

Tracking

()

RESOLVED INVALID

People

(Reporter: Sylvestre, Assigned: nirmay, Mentored)

References

(Blocks 1 open bug)

Details

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

Attachments

(1 obsolete file)

Filling as a good first bug to learn workflows.

do not use 'else' after 'return'
https://searchfox.org/mozilla-central/rev/809ac3660845fef6faf18ec210232fdadc0f1ad9/xpcom/io/nsDirectoryService.cpp#233-242

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.

can i contribute?

Assignee: nobody → nirmay.dhruv
Status: NEW → ASSIGNED

Oups, sorry, it was invalid.
see
https://bugs.llvm.org/show_bug.cgi?id=48543

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
Attachment #9196020 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: