ruff: xpidl/header.py: Use `elif` instead of `else` then `if`, to reduce indentation
Categories
(Core :: XPCOM, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox139 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: giulianoverrando, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [lang=python])
Attachments
(1 file)
Filling as a good first bug to learn workflows.
Use elif instead of else then if, to reduce indentation
https://searchfox.org/mozilla-central/source/xpcom/idl-parser/xpidl/header.py#85-89
https://searchfox.org/mozilla-central/source/xpcom/idl-parser/xpidl/header.py#149
As the change is trivial, it is just to learn how to contribute to Firefox.
Found by https://docs.astral.sh/ruff/rules/collapsible-else-if/
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.
| Reporter | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 2•1 year ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Comment 3•1 year ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:giulianoverrando, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Comment 5•1 year ago
|
||
| bugherder | ||
| Reporter | ||
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
Description
•