Closed
Bug 1674613
Opened 4 years ago
Closed 4 years ago
nsDirectoryService.cpp: do not use 'else' after 'return'
Categories
(Core :: XPCOM, task)
Core
XPCOM
Tracking
()
RESOLVED
INVALID
People
(Reporter: Sylvestre, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=C++])
Filling as a good first bug to learn workflows.
do not use 'else' after 'return':
https://searchfox.org/mozilla-central/source/xpcom/io/nsDirectoryService.cpp#234-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
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
Updated•4 years ago
|
Component: General → XPCOM
Comment 1•4 years ago
|
||
This is the same situation as that mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1674633#c4, so this is also a false-positive.
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•