mirror of
https://gitlab.gnome.org/june/top-bar-organizer.git
synced 2026-01-11 16:53:51 +01:00
Other: Disallow omitting curly braces and enforce one true brace style
Do this by updating the ESLint config accordingly and also fix new complaints.
This commit is contained in:
parent
8de94d6b01
commit
cedb54ed64
6 changed files with 44 additions and 19 deletions
|
|
@ -176,7 +176,9 @@ var BoxOrderManager = GObject.registerClass({
|
|||
// Get the indicator container associated with the current role.
|
||||
const associatedIndicatorContainer = Main.panel.statusArea[role]?.container;
|
||||
|
||||
if (indicatorContainerSet.has(associatedIndicatorContainer)) validBoxOrder.push(role);
|
||||
if (indicatorContainerSet.has(associatedIndicatorContainer)) {
|
||||
validBoxOrder.push(role);
|
||||
}
|
||||
}
|
||||
|
||||
return validBoxOrder;
|
||||
|
|
@ -218,7 +220,9 @@ var BoxOrderManager = GObject.registerClass({
|
|||
// First get the role associated with the current indicator
|
||||
// container.
|
||||
let role = indicatorContainerRoleMap.get(indicatorContainer);
|
||||
if (!role) continue;
|
||||
if (!role) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Handle an AppIndicator/KStatusNotifierItem item differently.
|
||||
if (role.startsWith("appindicator-")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue